javabean to database problem
From: Henry <hxzhang_at_binary-solutions.net>
Date: Fri, 05 Apr 2002 21:42:30 GMT
Message-ID: <aTor8.9737$hS3.500332_at_news0.telusplanet.net>
Date: Fri, 05 Apr 2002 21:42:30 GMT
Message-ID: <aTor8.9737$hS3.500332_at_news0.telusplanet.net>
I have a table with each row corresponds to a javabean object. The objects
don't
However, after I insert the object into the table, how can i know the
object's ID in the
How could you guys accomplish that?
Received on Fri Apr 05 2002 - 23:42:30 CEST
necessarily have a primary key, so i use a sequence number as its primary
key, and a
trigger to assign the sequence number to its ID column when a new object is
inserted
into the database.
table? If I simply do a "..._seq.cur_val", it is not safe when multiple
users can access
the database and save their javabean into it at the same time.