Descriptor without a table

Hello All,
We are working on a project where we are analysing the pros and cons of using SQL Named Queries Vs Named Queries defined in Java.
Can we define a Toplink Descriptor without a table definition (None of the fields are mapped). I was able to generate Deployment XML file, but the application failed at runtime saying "Descriptor must have a table name defined"
Also, if ever that was possible, what are the implications of not mapping the the object to a table and just having Named SQL queries directly load into the Java objects.
How do the update, insert and delete work in this scenario?
Has anyone tried Custom SQLs/ SQL Named Queries?
Thanks,
Neeraj

You need to map a class to a table. But, it doesn't have to be a "real" table. You can just fake one in the Mapping Workbench, and then if all your SQL overrides don't actually use that Table, no problems. We need to map to a table - if anything - to have a place to store column names that can be used to map the results of the SQL to the attributes in the class. I see this kind of thing when people want to map classes to stored procs. They fake a table in the MW, map the class to it, and then in all the CRUD overrides they put their stored proc calls and the results from the stored procs need to have "column" names that match those in the fake table.
- Don

Similar Messages

  • Add a new record in database table without using table maintance generator

    Hi Expart ,
                  Plz. tell me how to add new record in database table without using table maintance ganerator ....give me one ex.
    Regards
    Bhabani

    Hi,
    The other way to safely handle the modification of tables is through is by programs that can be done with SE38 or SE80.
    To insert into database table we use INSERT statement :
    1. To insert a single line into a database table, use the following:
    INSERT INTO <target> VALUES <wa>.
    INSERT <target> FROM <wa>.
    2. To insert a several lines into a database table, use the following:
    INSERT <target> FROM TABLE <itaba>.
    Or even we can use MODIFY statementas this single statement is used to insert as well as update the records of database table.
    MODIFY <target> FROM <wa>.
    or MODIFY <target> FROM TABLE <itab>.
    thanx.
    Edited by: Dhanashri Pawar on Sep 10, 2008 12:25 PM
    Edited by: Dhanashri Pawar on Sep 10, 2008 12:30 PM

  • Designer generating CG_REF_CODES inserts without the table name.

    We have upgraded our repository from 9i to 10g and now when we generate DDL we get our insert statements for the CG_REF_CODES table without a table name. I am sure that this must be a setting somewhere but I can't find any reference to it in the help. The following is an example of the generated .avt file from our 10g installation.
    Thanks in advance,
    Chris S.
    DELETE FROM
    WHERE RV_DOMAIN = 'DURATION_VALUE'
    INSERT INTO (RV_DOMAIN, RV_LOW_VALUE, RV_HIGH_VALUE, RV_ABBREVIATION, RV_MEANING)
    VALUES ('DURATION_VALUE', 'D', NULL, 'Days', 'Days')
    INSERT INTO (RV_DOMAIN, RV_LOW_VALUE, RV_HIGH_VALUE, RV_ABBREVIATION, RV_MEANING)
    VALUES ('DURATION_VALUE', 'M', NULL, 'Months', 'Months')
    INSERT INTO (RV_DOMAIN, RV_LOW_VALUE, RV_HIGH_VALUE, RV_ABBREVIATION, RV_MEANING)
    VALUES ('DURATION_VALUE', 'Y', NULL, 'Years', 'Years')
    INSERT INTO (RV_DOMAIN, RV_LOW_VALUE, RV_HIGH_VALUE, RV_ABBREVIATION, RV_MEANING)
    VALUES ('DURATION_VALUE', 'B', NULL, 'Business Days', 'Business Days')
    INSERT INTO (RV_DOMAIN, RV_LOW_VALUE, RV_HIGH_VALUE, RV_ABBREVIATION, RV_MEANING)
    VALUES ('DURATION_VALUE', 'I', NULL, 'Indefinite', 'Indefinite')
    COMMIT
    /

    Sounds like a bug to me, but one thing you can check is the generator options that affect the reference code table. In the Design Editor select your application in the navigator, then the Options menu. Select "Generator Options...", then "General..."
    One thing you might fool with is the File Name Length restriction - mine is blank, but then I tend not to use CG_REF_CODES, so I haven't generated them for quite a while. Try setting it to 30, which would be the right number for Oracle, or to 0, which is supposed to mean "no restriction".

  • Export dump without some table

    i would like to export whole schema without few tables on oracle 10g. can someone advise me how can i do that. can someone give me the task.
    thanks

    You do the simpilar thing in original exp/imp, but only INCLUDE not exclude, see this example,
    %exp test/test1 tables=me% STATISTICS=NONE
    Export: Release 10.1.0.2.0 - Production on Mon Jan 7 10:15:32 2008
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table                           ME22          4 rows exported
    . . exporting table                             ME          0 rows exported
    . . exporting table                            ME2          0 rows exported
    . . exporting table                            ME3          0 rows exported
    Export terminated successfully without warnings.
    sqlplus test/test1
    SQL*Plus: Release 10.1.0.2.0 - Production on Mon Jan 7 10:16:54 2008
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    TEST> select table_name from user_tables
      2  where table_name like 'ME%';
    TABLE_NAME
    ME
    ME2
    ME22
    ME3

  • MTD,YTD,PTD without calendar table

              QTY
          Month
          Year
    QTY_YTD
    QTY_MTD
    QTY_PTD
    10
    1
    2010
    20
    2
    2010
    20
    1
    2012
    30
    3
    2012
    Above is how my table looks like and  all are having integer datatypes
    I dont have a calendar table to join hence without calendar table can I compute YTD,MTD,PTD?
    If so what will be the case queries
    Mudassar

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules. Temporal data should
    use ISO-8601 formats. Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    Since SQL is a database language, we prefer to do look ups and not calculations. They can be optimized while temporal math messes up optimization. A useful idiom is a report period calendar that everyone uses so there is no way to get disagreements in the DML.
    The report period table gives a name to a range of dates that is common to the entire enterprise. 
    CREATE TABLE Something_Report_Periods
    (something_report_name CHAR(10) NOT NULL PRIMARY KEY
       CHECK (something_report_name LIKE <pattern>),
     something_report_start_date DATE NOT NULL,
     something_report_end_date DATE NOT NULL,
      CONSTRAINT date_ordering
        CHECK (something_report_start_date <= something_report_end_date),
    etc);
    These report periods can overlap or have gaps. I like the MySQL convention of using double zeroes for months and years, That is 'yyyy-mm-00' for a month within a year and 'yyyy-00-00' for the whole year. The advantages are that it will sort with the ISO-8601
    data format required by Standard SQL and it is language independent. The pattern for validation is '[12][0-9][0-9][0-9]-00-00' and '[12][0-9][0-9][0-9]-[01][0-9]-00'
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Scrolling Table Rows without scrolling table header

    Hi folks,
    Is it possible to scroll table rows (top to bottom) without scrolling table header?
    I am using table inside a scroll controller with scrolling mode "auto". It scrolls full table along with header.
    My requirement is to keep header static and scroll rows beneath same.
    Is it possible or any other alternative?
    Regards,
    Mandeep Virk

    Hello Mandeep,
    Which version of NW are you using. In CE version you have table with scrollable rows. In case you want your this requirement to get fuilfill then kindly upgrade to NW CE 7.1 .
    In the earler release of NW 2004s this is not possible.
    Some days back one had similar problem and he resolved it by using 2 containers. Please search on SDN.
    I hope this helps!
    Thanks nad Regards
    Pravesh

  • Is there way to alphabetize a list without a table?

    I have to find a way. My list has stars in them, so when I revert the table back to text, the stars font "menlo" turns into "helvetica", making the stars huge and annoying. If there was a way to just alphebetize without a table coming in, it would be nice to know and make things much faster.

    Download and install Word Services.
    It has sorting as one of many functions.
    Peter

  • Submit multiple item without "Repeating table"

    Hi
    How can I do submit multiple item in list with single infopath form without repeating table?

    Create a workflow and create items with what ever information you want.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Defining a descriptor without a base table

    Is it possible? I see this defined in Toplink 2.5, what is the equivalent
    methodology in 10g? thanks

    Generally a TopLink descriptor relates a class to one or more tables. The only exceptions I can think of are interface descriptors and aggregate descriptors.
    Can you explain your required mapping scenario in more detail. If it was possible in TopLink 2.5 it should still be possible although the mechanism may have evolved.
    Doug

  • Fact Tables without Dimension Tables.

    Hi,
    I am currently working on a project where a data warehouse is being developed using an application database as the source. Since the application database is already normalised, the tables are being loaded in as they are and the consultant involved is creating
    data marts for them. I have asked about why he is not creating separate dimension and fact tables as data marts, and he has told me that he will create a fact table with the dimensions as column names without any dimension tables created as you might expect
    as per star/snowflake schema.
    Is this right, as I always thought you had to have dimension and fact tables, especially if you want to start using SSAS?
    Regards,
    W.

    create a fact table with the dimensions as column names without any dimension tables created as you might expect as per star/snowflake schema.
    This is the trouble with denormalization: where is the stopping point?
    If the data warehouse is the source for SSAS OLAP cubes, it is better to go with the usual star schema.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Fact table without dimension table

    is it possible to build a fact table without any joining dimension table?
    I found that in this case an error is issued.
    thanks !!

    Yes, you can but you must create a fake join with another table.
    OBIEE ask always in the Business Model Layer minimum a fact table and a dimension.
    In the presentation layer, you drag only the fact table column and it will work.

  • Split date range without Calendar table

    Hi guys!
    Is there any way to split date ranges (to days / hours / minutes) in one table without using Calendar table (without joining 2 tables)?
    Reason I'm asking this is because we have a huge Fact table (500+ million records) and joining small Calendar table and this huge Fact table takes considerable amount of time.
    So far we tried:
    Join 2 tables (Fact and Calendar)
    Cross Applying Calendar and table-valued function (that returns necessary measures from Fact table)
    and both approaches took few minutes for 1 day to complete.
    Most successful test we had so far was using CLR and executing table-valued functions in parallel for different 15 minute periods. This way we were able to get the results in 3-4 seconds.
    Anyway, is there any effective pure T-SQL way to accomplish this?
    Thanks in advance,
    Miljan

    Try using a temporary table rather than table variable.. You can have a CI on the date column.
    or
    declare @PeriodStart datetime2(0) = '2013-01-05 00:00:00'
    declare @PeriodEnd datetime2(0) = '2013-01-05 02:00:00'
    select T.PeriodStart, T.PeriodEnd, count(Column1)as count1, sum(Column2)as sum1
    from Fact F with(nolock)WHERE F.[Start]>= '19000101' AND <=@PeriodStartand F.[End] >= @PeriodEnd and F.[End] <='20200101'
    group by T.PeriodStart, T.PeriodEnd
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Filter in Update (or Transfer) Rules without additional table write

    Hi
    For filtering out records on a master data attribute in Update Rules (in order to not fill them into Data Target) you can use a start routine like the example blow (from Björn - thanks!)
    From the coding I guess that it at least creates and writes into one table.
    Is there any way to do this filtering purely in RAM, so the Update Rule just passes on the matching records while simply dropping the filtered records without writing any additional tables than normal during the Update Process?
    Full points will be assigned!
    Thanks,
    German
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    TABLES: ...
    TABLES: /BI0/PCUSTOMER.
    DATA:   ...
    DATA: i_t_customer like /BI0/PCUSTOMER occurs 0 with header line.
    $$ end of global - insert your declaration only before this line   -
    ... internal definitions ...
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
      DATA: i_l_data_package LIKE LINE OF DATA_PACKAGE,
              i_t_data_package LIKE STANDARD TABLE OF DATA_PACKAGE.
      select * from /BI0/PCUSTOMER into table i_t_customer.
      LOOP AT DATA_PACKAGE.   
        MOVE-CORRESPONDING DATA_PACKAGE TO i_l_data_package.
        read table i_t_customer with key
          CUSTOMER = i_l_data_package-CUSTOMER.   
        IF sy-subrc = 0.
          IF i_t_customer-COUNTRY = 'DE'.
              APPEND i_l_data_package TO i_t_data_package.
          ENDIF.
        ENDIF.       
      ENDLOOP.
      REFRESH DATA_PACKAGE.
      DATA_PACKAGE[] = i_t_data_package.
      REFRESH i_t_data_package.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -

    Really, if it is your requirement, do the filter in the start routine is less expensive in term of memory consumption and performance.
    But I suggest to make a code like this:
    select * from /BI0/PCUSTOMER into table i_t_customer.
    LOOP AT DATA_PACKAGE.
    read table i_t_customer with key
      CUSTOMER = DATA_PACKAGE-CUSTOMER.
    IF sy-subrc = 0 and i_t_customer-COUNTRY = 'DE'. 
    No Customer with country DE will be in data target!!!!
    delete data_package.
    ENDIF.
    ENDLOOP.
    And no other code!
    regards,
    Sergio

  • Copying the data into internal table without internal table

    Hello experts.
    i have two internal tables . itab1 without headerline and itab2 with headerline. itab1 has 10 fields and itab2 has 2 fields.
    BEGIN OF itab,
    lifnr LIKE lfa1-lifnr,
    ktokk LIKE lfa1-ktokk,
    name1 LIKE lfa1-name1,
    sortl LIKE lfa1-sortl,
    pstlz LIKE lfa1-pstlz,
    ort01 LIKE lfa1-ort01,
    land1 LIKE lfa1-land1,
    j_1ipanno LIKE j_1imovend-panno,
    end of itab.
    DATA: itab1 TYPE STANDARD TABLE OF itab.
    data: begin of itab2 occurs 0,
    lifnr like j_1imovend-lifnr,
    j_1ipanno like j_1imovend-j_1ipanno,
    end of itab2.
    now i want to move the data from itab2-j_1ipanno into itab1-j_1ipanno.
    Both the tables ie itab1 and itab2 has lifnr data in them .
    so in itab2 j_1ipanno has pan number for the lifnr( vendors) so i need to populate this pannumbers in itab1 also by comparing
    the lifnrs in two tables. where ever the lifnr of itab2 is equal to itab1-lifnr then this pannumber should be placed there. 
    so pls tell me how to do that. lifnr in both the tables are the same.
    thanks for all the replies.

    Hi Shiva,
                Try this one..
    data: begin of itab.
       lifnr LIKE lfa1-lifnr,
        ktokk LIKE lfa1-ktokk,
    name1 LIKE lfa1-name1,
    sortl LIKE lfa1-sortl,
    pstlz LIKE lfa1-pstlz,
    ort01 LIKE lfa1-ort01,
    land1 LIKE lfa1-land1,
    j_1ipanno LIKE j_1imovend-panno,
    end of itab.
    data: wa like line of itab1.
    data: begin of itab occurs 0,
            lifnr like j_1imovend-lifnr,
            j_1ipanno like j_1imovend-j_1ipanno,
    end of itab2.
    data: wa1 like line of itab2.
    loop at itab1 into wa.
    itab2-lifnr = wa-lifnr.
    itab2-j_1ipanno = wa-j_1ipanno
    append itab2.
    endloop.
    Reward points if helpful.
    Kiran Kumar.G.A
            Have a Nice Day..

  • Need to display Internal table records on screen without using table contro

    Hi Experts,
    I have a requirement to display internal table on screen which is having three columns (Material no, Serial No and quantity).
    But I can't use table control as it is not supported by hand held devices.
    They are going to use this transaction on hand held devices.
    Thanks In advance.
    Gaurav

    You should be able to use the good old STEP LOOP processing for this... create your three fields in the row then convert them to a STEP-LOOP.
    You can look up in the help how to work with STEP-LOOPs if you are not familiar with it. It was the way to manage table-like information before the age of table controls

Maybe you are looking for

  • ABAP MESSAGE_TYPE_X -DUmp Due to Change in hiring process for HK ?

    Hi, I changed the Hiring process , just added new infotype 0105 into the process for HK , after that i got an ABAP  "MESSAGE_TYPE_X" dump when i tried to save PA30 . See the below Error : with the key 50002134567880       9999123119712134256206528473

  • Late 2014 iMac 5K running unusually slowly with fans running at high speed

    Problem description: iMac 5K The computer is running unusually slowly although it is not experiencing high CPU utilization. The computer's fans run at high speed although the computer is not experiencing heavy usage. Apple Diagnostics points to SMC p

  • Adobe premiere pro cc wont launch anymore

    hello i'm using premiere pro cc for 1 month. it wont launch anymore. sudainly. yesterday computer crashed to blue screen when i did try to lauch. today no error message just (in french "adobe premiere pro a céssé de fonctionner" graphic card driver a

  • NOT ABLE TO UPGRADE FROM CUE 1.1.2 TO CUE 2.3.1

    Hello, I am trying to upgrade from CUE Ver 1.1.2 TO CUE 3.2.1 by "Upgrading  Using the Boot Helper" method but after uploading the "cue-installer.2.3.1" from the TFTP the system boots up but it does not show me the "Service Engine Helper Software" It

  • Websheet objects never valid

    Trying to install websheet objects. objects install no errors run Validate websheet objects get the following: APEX$_ACL     Yes     Invalid     Valid     Valid     Valid APEX$_WS_FILES     Yes     Invalid     Valid     Valid     Valid APEX$_WS_HISTO