File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
RabbitMQ in Depth
this week in the
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
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