Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Best way to generate Primary Key with CMP- Entity Bean (EJB 2.0)  RSS feed

 
Ankit Mishra
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Which is the best way to generate a primary key. Say, for example I have one table Student and in that I have a student Id. Now how can I generate it as an automated key.

I don't want to use sequencing or auto increments. I want to do with a business logic, so how can I achieve that?
 
Joe Mester
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What kind of database system?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!