aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Primary Key CMP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Primary Key CMP" Watch "Primary Key CMP" New topic
Author

Primary Key CMP

Vinod Kumar
Ranch Hand

Joined: Jan 18, 2002
Posts: 75
Hi all,
If my primary key is auto-generated using "sequence" in oracle how should i code my primary key class and map the fields so that create() method calls inserts one record into the table properly.
Regards,
Vinod
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15662
    
  15

You can't. This is a problem with CMPs that allegedly will be fixed in future. Try searching this forum for "sequence" and you'll find more on this common problem.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
wood burning stoves
 
subject: Primary Key CMP
 
Similar Threads
Problem with update data to database
primay key ???
Primary key and update method strange issue
ATG Framework
JDBC Callable Statement JConnect2 Returning null resultset