aspose file tools
The moose likes EJB and other Java EE Technologies and the fly likes How to implement EJB 2.0 Entity bean for auto increment DB file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to implement EJB 2.0 Entity bean for auto increment DB file" Watch "How to implement EJB 2.0 Entity bean for auto increment DB file" New topic
Author

How to implement EJB 2.0 Entity bean for auto increment DB file

Diya charu
Greenhorn

Joined: Nov 29, 2006
Posts: 8
How to implement EJB 2.0 Entity bean for auto increment DB filed, let's say I have table person(ID, name), ID is auto-increment PK, I have ejbCreate(ID, name), if I send null for ID that won't work (exception), if I have ejbCreate(name) that won't work because I receive exception.
I am using Db2 server, app. server is Eclipse.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to implement EJB 2.0 Entity bean for auto increment DB file