Thursday, April 5, 2007

jGuru: How do I automatically generate primary keys?

jGuru: How do I automatically generate primary keys?: "Question How do I automatically generate primary keys? "

Answer A common way to do it is to use a stateless session bean to retrieve the ID that you wish to use as the primary key. This stateless session bean can then execute an Oracle sequencer or procedure etc. to retrieve the ID value used as the primary key.

No comments: