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.
An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Primary Key CMP
Primary key and update method strange issue
primay key ???
JDBC Callable Statement JConnect2 Returning null resultset
Problem with update data to database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015