A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB and other Java EE Technologies
Primary Key CMP
Joined: Jan 18, 2002
Jun 10, 2002 07:19:00
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.
Joined: Jun 25, 2001
Jun 10, 2002 08:23:00
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.
I agree. Here's the link:
subject: Primary Key CMP
JDBC Callable Statement JConnect2 Returning null resultset
primay key ???
Problem with update data to database
Primary key and update method strange issue
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014