This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python 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!