cancel
Showing results for 
Search instead for 
Did you mean: 

Autogeneration of primary keys for CMP beans

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
Former Member
0 Kudos

Chetan,

We are having issues in deploying CMP's to netweaver server , the links tht you have provided are weblogic specific. We are having prob with the Automatic key generation on Netweaver CE 7.1

Thanks,

Mukul

Former Member
0 Kudos

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

Former Member

Answers (0)