on 03-25-2009 5:17 AM
Hi,
We are migrating our application to netweaver 7.1 CE , having trouble with the automatic key generation of the CMP beans. We are using java.lang.Object as primary key class and the autogenerated col is ejb_pk but still it doesnt work.
What could be the reason. It is considering it a normal table ie. a table without an identity column
Thanks,
Mukul.
Hi Mukul
Please check if the following links help you:
http://docs.sun.com/app/docs/doc/819-4721/beajq?a=view
or
http://192.87.31.188/docs/easpg/easpg159.htm
or
http://download.oracle.com/docs/cd/B25221_04/web.1013/b14428/cmp21cfg.htm
or
http://edocs.bea.com/workshop/docs81/doc/en/core/index.html
I hope this helps
Regards
Chen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mukul,
Unfortunately, I cannot comment on the compatibility between CE 7.1 and CMP.
ADDED: More information about CMP automatic primary key generation (for NW 7.0): http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b3/b238bfd13a8f408958d70a6989d001/frameset.htm
Generally, in SAP NetWeaver CE 7.1, which is based on the Java EE 5 technology, it is recommended that you use the Java Persistence API (JPA) to model the persistence layer of your application.
More information:
[Overview of the Java Persistence API|http://help.sap.com/saphelp_nwce711/helpdata/en/47/d67d5357a34ac5e10000000a42189d/frameset.htm]
[Using JPA in the Persistence Layer|http://help.sap.com/saphelp_nwce711/helpdata/en/44/eba6292f446c30e10000000a114a6b/frameset.htm]
Particularly, when speaking about automatic ID generation in terms of JPA and entities, you can read more about that here:
[Generated Primary Keys|http://help.sap.com/saphelp_nwce711/helpdata/en/0b/64c151148c4d83843ab278421dce87/frameset.htm]
Hope that helps!
Regards,
Yordan
Edited by: Yordan Yordanov on Mar 26, 2009 10:36 AM
Mukul,
Check if this one helps
Regards
Chen
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.