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
EJB and other Java EE Technologies
Auto generated Primary Key handling with CMP EJB
Joined: Jun 02, 2004
Jun 02, 2004 00:52:00
i have a table where the primary key is an autogenerated integer field.how do i write a CMP
in this case?
Joined: Aug 02, 2002
Jun 02, 2004 02:22:00
while ejbCreate() you don't need to pass the value for this field.This will be done by the app server
This is assuming you have a autogeneration configured ( oracle seq or seperate sequence table etc)
Joined: Mar 27, 2004
Jun 02, 2004 21:18:00
If you're on
, there are chances that you'll go through some problems.
I i guessed right, just follow this
SCJP 1.4, SCWCD 1.4
I agree. Here's the link:
subject: Auto generated Primary Key handling with CMP EJB
Composite primary key and auto generation
Can CMP entity beans created without a Primary Key ?
Primary Key Class in CMP & BMP
ejbcreate() method returns what
Websphere Application Developer
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013