Reverse Mapping Tutorial - Finder.java queries the wrong table?!

I have been almost successful in running the Reverse Mapping Tutorial, by
creating Java Classes from the hsqldb sample database, and running the JDO
Enhancer on them.
However, I cannot get he Finder.java to work. It seems to look in the wrong
table: MAGAZINEX instead of MAGAZINE?
Did anyone have trouble with this step, or ran it successfully?
Liviu
PS: here is the trace:
0 [main] INFO kodo.Runtime - Starting Kodo JDO version 2.4.2
(kodojdo-2.4.2-20030326-1841) with capabilities: [Enterprise Edition
Features, Standard Edition Features, Lite Edition Features, Evaluation
License, Query Extensions, Datacache Plug-in, Statement Batching, Global
Transactions, Developer Tools, Custom Database Dictionaries, Enterprise
Databases]
70 [main] WARN kodo.Runtime - WARNING: Kodo JDO Evaluation expires in 25
days. Please contact [email protected] for information on extending your
evaluation period or purchasing a license.
68398 [main] INFO kodo.MetaData -
com.solarmetric.kodo.meta.JDOMetaDataParser@19eda2c: parsing source:
file:/C:/Documents%20and%20Settings/default/jbproject/JDO/classes/reversetut
orial.jdo
74577 [main] INFO jdbc.JDBC - [ C:24713456; T:31737213; D:22310332 ] open:
jdbc:hsqldb:hsql_sample_database (sa)
75689 [main] INFO jdbc.JDBC - [ C:24713456; T:31737213; D:22310332 ] close:
com.solarmetric.datasource.PoolConnection@17918f0[[requests=0;size=0;max=70;
hits=0;created=0;redundant=0;overflow=0;new=0;leaked=0;unavailable=0]]
75699 [main] INFO jdbc.JDBC - [ C:24713456; T:31737213; D:22310332 ] close
connection
77331 [main] INFO jdbc.JDBC - Using dictionary class
"com.solarmetric.kodo.impl.jdbc.schema.dict.HSQLDictionary" to connect to
"HSQL Database Engine" (version "1.7.0") with JDBC driver "HSQL Database
Engine Driver" (version "1.7.0")
1163173 [main] INFO jdbc.JDBC - [ C:3093871; T:31737213; D:22310332 ] open:
jdbc:hsqldb:hsql_sample_database (sa)
1163293 [main] INFO jdbc.SQL - [ C:3093871; T:31737213; D:22310332 ]
preparing statement <17940412>: SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM
MAGAZINEX
1163313 [main] INFO jdbc.SQL - [ C:3093871; T:31737213; D:22310332 ]
executing statement <17940412>: [reused=1;params={}]
1163443 [main] INFO jdbc.JDBC - [ C:3093871; T:31737213; D:22310332 ]
close:
com.solarmetric.datasource.PoolConnection@2f356f[[requests=1;size=0;max=70;h
its=0;created=1;redundant=0;overflow=0;new=1;leaked=0;unavailable=0]]
1163443 [main] INFO jdbc.JDBC - [ C:3093871; T:31737213; D:22310332 ] close
connection
Hit uncaught exception javax.jdo.JDOFatalDataStoreException
javax.jdo.JDOFatalDataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
[PRE=SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
Table not found: S0002 Table not found: MAGAZINEX in statement [SELECT
DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX] [code=-22;state=S0002]
NestedThrowables:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
[PRE=SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
Table not found: S0002 Table not found: MAGAZINEX in statement [SELECT
DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
at
com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwFatal(SQLException
s.java:17)
at
com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getSubclasses(
SubclassProviderImpl.java:283)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.getPrimaryMappingField
s(ClassMapping.java:1093)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:704)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java
:93)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:595)
at reversetutorial.Finder.main(Finder.java:32)
NestedThrowablesStackTrace:
java.sql.SQLException: Table not found: S0002 Table not found: MAGAZINEX in
statement [SELECT DISTINCT MAGAZINEX.JDOCLASSX FROM MAGAZINEX]
at org.hsqldb.Trace.getError(Trace.java:226)
at org.hsqldb.jdbcResultSet.<init>(jdbcResultSet.java:6595)
at org.hsqldb.jdbcConnection.executeStandalone(jdbcConnection.java:2951)
at org.hsqldb.jdbcConnection.execute(jdbcConnection.java:2540)
at org.hsqldb.jdbcStatement.fetchResult(jdbcStatement.java:1804)
at org.hsqldb.jdbcStatement.executeQuery(jdbcStatement.java:199)
at
org.hsqldb.jdbcPreparedStatement.executeQuery(jdbcPreparedStatement.java:391
at
com.solarmetric.datasource.PreparedStatementWrapper.executeQuery(PreparedSta
tementWrapper.java:93)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryI
nternal(SQLExecutionManagerImpl.java:771)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(
SQLExecutionManagerImpl.java:691)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecu
tionManagerImpl.java:372)
at
com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecu
tionManagerImpl.java:356)
at
com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getSubclasses(
SubclassProviderImpl.java:246)
at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.getPrimaryMappingField
s(ClassMapping.java:1093)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:704)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java
:93)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:595)
at reversetutorial.Finder.main(Finder.java:32)

The reason I did not run importtool is because ... I actually ran it, but it
was not successfull. **!
I now tried the solutions directory, from the kodo distribution, and that
failed as well. Here is what I did:
- I went to reversetutorial/solutions, and compiled all the classes, and
then placed them into a reversetutorial folder (to match the package)
- ran "rd-importtool reversetutorial.mapping" (the mapping file from the
solutions directory), which failed as below:
0 [main] INFO kodo.MetaData - Parsing metadata resource
"file:/C:/kodo/reversetutorial/solutions/reversetutorial.mapping".
Exception in thread "main"
com.solarmetric.rd.kodo.meta.JDOMetaDataNotFoundException: No JDO metadata
was found for type "class reversetutorial.Article".
FailedObject:class reversetutorial.Article
at
com.solarmetric.rd.kodo.meta.JDOMetaDataRepositoryImpl.getMetaData(JDOMetaDa
taRepositoryImpl.java:148)
at
com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository.getMetaData(Mapping
Repository.java:147)
at
com.solarmetric.rd.kodo.impl.jdbc.meta.MappingRepository.getMapping(MappingR
epository.java:158)
at
com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.getMapping(ImportTo
ol.java:126)
at
com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.importMappings(Impo
rtTool.java:57)
at
com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.run(ImportTool.java
:408)
at
com.solarmetric.rd.kodo.impl.jdbc.meta.compat.ImportTool.main(ImportTool.jav
a:385)
Any idea why? The solutions directory should work, right? I even tried
specifying a kodo.properties file, but it did not seem to help.
Liviu
"Abe White" <[email protected]> wrote in message
news:[email protected]...
Running the reversemappingtool creates classes, metadata files, and a
.mapping file. That .mapping file contains all the O/R mapping
information for how the generated classes map to your existing database
tables. What the importtool does is just transfer that mapping
information to the metadata files, in the form of <extension> elements.
The reason this is a separate step will be clear once Kodo 3.0 comes out.
So in sum, the importtool does not affect the database in any way. It
just moves information from one format (.mapping file) to another
(<extension> elements in the .jdo file).

Similar Messages

  • Moving data between tables (how to find out if the 2nd table is empty)

    Hi,
    I have 2 tables, and I'm copying records from one table to another.
    I've followed the Wiki: [https://www.sdn.sap.com/irj/sdn/wiki?path=/display/vc/movingdatabetween+tables]
    So far, everything works ok.
    Here is my question: how do I get the number of records passed?
    I mean, how do I know the number of rows in the 2nd table? (Remember that this number is variable, because it depends on how many rows I've inserted and deleted on the 2nd table).
    I've tried to achieve that using a data store with a numeric field, but I couldn't find the way to increment/decrement the numeric field on data store, and insert/delete the row on table at the same time .
    All I want is to find out if the 2nd table is empty or not.
    Any ideas to solve this?
    Thanks in advance!
    Help will be point-rewarded.
    Marcelo

    Hi Ahmed
    thanks for your reply, it was very helpful!! (I've assigned points to you)
    However the user can add twice or more times the same row... so the counter doesn't reflect the real number of rows in the 2nd table.
    I've partially solved this also using a data store with a parameter called key_list, where I add (I mean, concatenate) the key field for the selected row.
    So, if I have a table with 4 rows with key fields "key1", "key2", "key3", the parameter key_list would get "key1;key2;key3".
    So far, it's ok. But when I remove a row previosly added.... I can't remove the key from the key_list parameter. (I mean, from 2nd table I choose to remove the "key2" row, but I don't know how also remove the key name from the key_list)
    I hope be clearly enough.
    Any help will be really appreciated and point-rewarded.
    Thanks again.
    Best Regards
    PS: is there any way of "mark" a row that has been added to the 2nd table? I mean, using (for example) a hidden boolean field named "added", that becomes true when the selected row is added to the 2nd table.

  • ERROR:  cannot find information from the FND_FORM_FUNCTIONS table

    Hi,
    I am in CU2, i have created my project, set the right responsibility in Project property panel of my Jdeveveoper.
    When i run the first page all is ok, but if i click on a h-grid link , i receive the following error:
    "Your system has not been properly set up. The system cannot find information from the FND_FORM_FUNCTIONS table which is needed for this process. Please consult your System Administrator for further assistance."
    This happens only if i launch the custom from jdeveloper. On the Applications, the custom works fine.
    Any idea about the error?
    Thanks in advance,
    Carlo

    Please check the calling logic which is written to invoke the custom form from the existing form.

  • How can we find out that the Z table is adjusted or not???

    Dear Friends,
    How can we find out that the Z table is adjusted or not???
    I have activated it but I need to se that the table is adjusted or not? I know we can do it from SE14 but I don't have an authorization ,
    Thnaks,
    Sridhar

    Hi, Thanks for the reply,
    As per ur suggestion of path direction I have checked the table in production and development both.
    In my Z table, I have 2 key fields and for those 2 key fields the primary indexs are created automaticaly and displayed in Developement but in Production there is no indexs are created for those 2 fields.
    Could you please guide me what could be the reason?
    Thanks in advance.
    Regards
    Sridhar

  • Where can i find out all the standared table name

    Dear Friend,
    could you please tell me where can i find out all the standard table names,
    ( for example: tstc for find all the T-codes) .

    HI Srinivas,
      DD02L has the name of all the TABLES in the SYSTEM. It has both SAP and Customer's TABLES.
      First of all exclude all Z* and Y* tables from dd02L. Still there are many tables in CUSTOMER NAMSPACE.
      So make a program, LOOP at all entries of DD02L and then check the name space of each entry using the function module:-
    <b>TRINT_OBJECT_NAMESPACE_INFO</b>.
    If the namspace is not EQUAL to 'S', then dont count that entry else add one to the counter.
      This would tell you all SAP Standard Tables in the system.
    Thanks and regards,
    RAVI :).
    NOTE: Points keep me alive on SDN .

  • Find/Replace highlights the wrong code

    Hi, when using the normal Find and search for specific text in my AS3 class file, it highlights the right position where it found the matching text, but when I use the Find/Replace it totally messes up, it highlights the wrong text in my code, but it displays the right position in the Find/Replace window. Is there a way to fix that, or is this a known bug? See attached screenshot.

    Hi,
    Thanks for sharing the file.
    The issue is with the End of Line(EOL) character. The file uses CR notation for its EOL and was used in Mac OS version upto 9 and in Mac OS 9. When a file is created using any of those versions of Mac OS then the EOL character would be CR which is obsolete now and is not recognized by many modern text editors.
    If the EOL is LF or CR|LF then the Find and Replace will work as expected in Flash CC.
    You can change the EOL of the file by opening and saving the file in Wordpad which will change the EOL to CR|LF.
    Hope this information will help resolve your issue.
    Thanks!
    Mohan

  • Still can't find out where the wrong is.....

    Here is the code I use to convert a String of infix expression
    into a postfix array.
    But I still can't find out where the problem is,can someone help me out, thanks...
    public void i2p(String i,char p[])
           int position ,outpos = 0;
           char topsymb = '+', symb, del;
           Stack opstk = new Stack(20);
           System.out.println("the original infix expression is: " + i);
           for(position=0 ; position< i.length() ; position++)
                symb = i.charAt(position);
                if(isoperand(symb))
                   p[outpos++] = symb;
                else
                     if(!opstk.empty()){
                          topsymb = opstk.pop();
                     prcdNum(topsymb, symb);
                     while(opstk.empty() == false && prcd(topsymb, symb) == true )
                     del = opstk.pop();
                     p[outpos++] = topsymb;
                     if(opstk.empty() == false && prcd(topsymb, symb) == false){
                        opstk.push(topsymb);
                        p[outpos++] = symb;
                     if(opstk.empty() == true && symb != ')'){
                        opstk.push(symb);
               while(!opstk.empty())
                 p[outpos++] = opstk.pop();
      }

    For example when I input a+b*c , it output abc* ,,,,,,,

  • How to find out that the database table is empty

    Hello all,
    How to find out in ABAP in the best performant way, that the database table is empty. The table could have several milions of records or be empty. SELECT count( * )  looks to me as not the best way.
    Kind regards
    Radim Benek
    Moderator message: FAQ, please search for previous discussions of similar topics.
    example: "SELECT SINGLE" vs. "SELECT UP TO 1 ROWS"
    Moderator message: Please Read before Posting in the Performance and Tuning Forum
    Edited by: Thomas Zloch on Aug 11, 2011 5:06 PM

    Hi,
    One approach is:
    check lt_mytable is initial.
    This will be true if there are no lines.
    Another:
    describe table lt_mytable lines lv_count
    if lv_count = 0.
    "Empty
    Thanks.
    Anitha a

  • Multi-table mapping is not inserting into the primary table first.

    I have an inheritance mapping where the children are mapped to the parent table oids with the "Multi-Table Info" tab.
    One of children is not inserting properly. Its insert is attempting to insert into one of the tables from the "Additional Tables" of "Multi-Table Info" instead of the primary table that it is mapped to.
    The other children insert correctly. This child is not much different from those.
    I looked through the forums, but found nothing similiar.

    I would expect the Children to be inserted into both the primary table and the Additional Table? Is the object in question inserted into the primary table at all? Is the problem that it is being inserted into the Additional Table first? If it is, are the primary key names different? Is it a foreign key relationship?
    If the object in question has no fields in the additional table is it mapped to the additional table? (it should not be)
    Perhaps providing the deployment XML will help determine the problem,
    --Gordon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to find Size of the fact table?

    hello all
    how do i find out the size of the fact table?
    Is the size of the fact table is same as size of the cube.
    pls let meknow
    regards
    balji

    Hello Balaji,
    To find out size of fact table
    DB02 ->Detailed anaysis -> Fact table name
    It will show you the details.
    The size of cube is not exactly equal to the size of fact table, but usually as fact table is much more larger than dimension tables, fact table size will give you a fair idea about cube size.
    Hope it helps.
    Regards,
    Praveen

  • Mapping problem - Shaded areas in the wrong place

    Hey experts,
    I`ve already contacted you on this issue a few days ago. I created a query, which executes a few key figures mapped to the postalcode.
    I tried to let me display this query on the web, using the WAD. The shapefiles were uploaded correctly, for the contours of the country and the postalcode areas are displayed accurately.
    At the first sight, I thought a performance problem could be the challenge. But I did not find any information on that. On my last post, i received one answer, that I had to adjust the sort order. But that did not bring any results either!
    At the moment, it looks more like a mapping problem in the dBase File to me. How can a proper mapping be achieved? I tried to just add a SAPBWKEY column, like it is proposed here: http://help.sap.com/saphelp_nw04/helpdata/en/3b/7c92ec1bed374ee0000800091c1b0e/content.htm.
    An extract of my dBase-File schematically looks like this:
    0country, 0Postalcod, SAPBWKEY
    DE            48900          DE/48900 (for it is a composite attribute)
    The mapping seems to work in a rather random way, because the shaded areas are at least displayed somewhere on the map, but not where they supposed to be, e. g. one district of south Germany in the far north and so on.
    Did you have any similar issues in the past or any tips for a solution?
    Thanks&regards
    Marcus

    Sorry, I guess this is just a bug in some programs including firefox:
    https://bugzilla.mozilla.org/show_bug.cgi?id=314279

  • I recently updated my iPhone 3GS now my maps application always gives me the wrong current location. It worked fine before it was updated during my last sync. How do I fix this?

    I have an iPhone 3GS 16gb not jailbroken, that I just synced and updated to the latest fix.  Before my google maps was working perfectly but since I updated it always gives me a current location that is about a half mile off in any direction.  I have tried several hard resets to no avail. turning off my wifi, nothing. Turning off my location services-reset-then turn them back on, again nothing.  Tried resetting network settings with the auto lock on never.  Rebooted.. Nothing again..
    Help!!! What's the score here?  What comes next?

    yes, you can update to the latest iOS, that would be the first thing AppleCare would have you do
    doing a restore and then putting your information right back on the device is not a troubleshooting step. If anything, you wipe out the issue and then have put it right back on your phone. It would be better to restore as new

  • How to find out what the underlying table/query of a form in Oracle Apps.

    Hi
    I am trying to find out who owns the underlying objects of a query when a user runs the Transactions > Line_Items form for Receivables .
    I have selected Help > Record History but I get a message Record History not available here.
    The query is running slow and I'd like to see if the objects have been analyzed lately.
    Thanks
    Andy

    Hi
    I should have said in the ticket that this is version 11.5.10
    It was close to giving me the answer I need. It gives me the following details. Unfortunately it doesn't give me the underlying sql. I hhave tried using v$session and sys.v_$sql but the sql is over 1000 characters long so I dont get to see the table/object being referenced.
    I appreciate the feedback.
    Thanks
    Andy
    Database Server
    RDBMS : 10.2.0.4.0
    Oracle Applications : 11.5.10.2
    Machine : alabama
    User : APPS
    Oracle SID : accausr1
    System Date : 12-SEP-2011 13:33:58
    Database Server PID : 16875
    Session SID : 1065
    SERIAL# : 1273
    AUDSID : 201640233
    Database CPU Usage (in secs) : 8.85
    Forms Server
    Oracle Forms Version : 6.0.8.27.0
    Application Object Library : 11.5.0
    Machine : AUSTIN
    Forms User CPU (secs) : 3.430000
    Forms System CPU (secs) : 0.840000
    Forms Process ID : 6347
    Forms Server Environment Variables
    AU_TOP : /oracle/finapps/accausr1/accausr1appl/au/11.5.0
    FDBDMCHK : [Unset]
    FDFGCXDBG : [Unset]
    FDSQLCHK : [Unset]
    FDUDEBUG : [Unset]
    FNDNAM : APPS
    FND_TOP : /oracle/finapps/accausr1/accausr1appl/fnd/11.5.0
    FORMS60_APPSLIBS : APPCORE FNDSQF APPDAYPK APPFLDR GLCORE HR_GEN HR_SPEC ARXCOVER
    FORMS60_CATCHTERM : 1
    FORMS60_ERROR_DATETIME_FORMAT : [Unset]
    FORMS60_ERROR_DATE_FORMAT : [Unset]
    FORMS60_FORCE_MENU_MNEMONICS : 0
    FORMS60_MAPPING : http://austin.accanet.org:8002/OA_TEMP
    FORMS60_MMAP : [Unset]
    FORMS60_OUTPUT : /oracle/finapps/accausr1/accausr1comn/temp
    FORMS60_OUTPUT_DATETIME_FORMAT : [Unset]
    FORMS60_OUTPUT_DATE_FORMAT : [Unset]
    FORMS60_PATH : /oracle/finapps/accausr1/accausr1appl/au/11.5.0/resource:/oracle/finapps/accausr1/accausr1appl/au/11.5.0/resource/stub:/oracle/finapps/accausr1/accausr1appl/au/11.5.0/forms/US
    FORMS60_RESOURCE : [Unset]
    FORMS60_TIMEOUT : 5
    FORMS60_USER_DATETIME_FORMAT : DD-MON-RRRR HH24:MI:SS
    FORMS60_USER_DATE_FORMAT : DD-MON-RRRR
    FORMS60_USE_CBO : [Unset]
    GWYUID : APPLSYSPUB/PUB
    NLS_DATE_FORMAT : DD-MON-RR
    NLS_DATE_LANGUAGE : AMERICAN
    NLS_LANG : AMERICAN_UNITED KINGDOM.WE8ISO8859P1
    NLS_NUMERIC_CHARACTERS : .,
    ORACLE_HOME : /oracle/finapps/accausr1/accausr1ora/8063
    ORACLE_PATH : [Unset]
    ORA_NLS_CHARSET_CONVERSION : [Unset]
    TNS_ADMIN : /oracle/finapps/accausr1/accausr1ora/8063/network/admin/accausr1_austin
    TWO_TASK : accausr1
    Current Form
    Form Application : Receivables
    Form Name : ARXTWMAI
    Form Path : /oracle/finapps/accausr1/accausr1appl/ar/11.5.0/forms/US/ARXTWMAI.fmx
    Form Version : 11.5.200
    Form Last Modified : $Date: 2005/01/07 11:50 $
    Forms
    APPSTAND : 11.5.33
    ARXRWMAI : 11.5.21
    ARXRWMAI : 11.5.21
    ARXTWMAI : 11.5.200
    FNDSCSGN : 11.5.122
    Form Menus
    FNDMENU : 11.5.51
    Forms PL/SQL
    APPCORE : 11.5.151
    APPFLDR : 11.5.55
    ARXARWIN : 11.5.65
    ARXBOEIF : 11.5.2
    ARXCWUTL : 11.5.8
    ARXPLCOM : 11.5.68.15104.2
    ARXQRCIF : 11.5.2
    ARXRCTIF : 11.5.2
    ARXRWBAT : 11.5.96
    ARXRWMAI : 11.5.19
    ARXTWBAT : 11.5.11
    ARXTWMAF : 11.5.27
    ARXTWMAI : 11.5.302.15104.9
    ARXTWUTL : 11.5.39.15104.2
    FNDSQF : 11.5.111
    GHR : 11.5.174
    GLOBE : 11.5.38
    GMS : 11.5.230.90.7
    IGILUTIL2 : 11.5.97
    IGILUTIL : 11.5.29
    OPM : 11.5.33.115100.2
    PQH_GEN : 11.5.124
    PSA : 11.5.162
    PSAC : 11.5.16
    PSB : 11.5.24
    VERT : 11.5.6

  • ADF - CheckList with Hash Map through radio button on the Tree Table

    CheckList with RadioButton or Check List...
    Anybody have some example related with ADF??

    Which model framework are you using?
    Maybe, the best option in this case would be you pass the HashMap as a parameter to the Model layer, and handle the hashmap to DB in the java code.
    As far as I know, JPA 2 has a support for this, but ADF BC i don't know...
    Regards,

  • Can we add(sum) the rows while quering the whole table in one statement.

    Hi,
    I have a table "create table test1(id number(5), name varchar2(10), salary number(10,2))" with the data
    ID     NAME     SALARY
    1     AAAAAA     55000
    2     BBBBB     15430
    3     CCCCC     15430
    4     DDDDD     25430
    5     EEEE     29830
    6     FFFFF     7645
    7     GGGGG     6546
    8     HHHHH     9645
    9     IIIIII     7584
    I need a select query which gives the result like this ie.., the 10th row should be the sum of all the 9 rows...
    ID     NAME     SALARY
    1     AAAAAA     55000
    2     BBBBB     15430
    3     CCCCC     15430
    4     DDDDD     25430
    5     EEEE     29830
    6     FFFFF     7645
    7     GGGGG     6546
    8     HHHHH     9645
    9     IIIIII     7584
    10 Total 172540

    Or;
    create table t as (
      select 1 id, 'AAAAAA' name, 55000 salary from dual union all
      select 2, 'BBBBB', 15430 from dual union all
      select 3, 'CCCCC', 15430 from dual union all
      select 4, 'DDDDD', 25430 from dual union all
      select 5, 'EEEE', 29830 from dual union all
      select 6, 'FFFFF', 7645 from dual union all
      select 7, 'GGGGG', 6546 from dual union all
      select 8, 'HHHHH', 9645 from dual union all
      select 9, 'IIIIII', 7584 from dual);
    Table createdQuery;
    with sub_tot as (
      select max(id) + 1 max_id,
        'Total' name,
        sum(salary) sum_sal
      from t)
    select id, name, salary from t
    union all
    select max_id, name, sum_sal from sub_tot
    order by id;
            ID NAME       SALARY
             1 AAAAAA      55000
             2 BBBBB       15430
             3 CCCCC       15430
             4 DDDDD       25430
             5 EEEE        29830
             6 FFFFF        7645
             7 GGGGG        6546
             8 HHHHH        9645
             9 IIIIII       7584
            10 Total      172540
    10 rows selected

Maybe you are looking for