Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Diya charu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic