BC4J and Squencer in Oracle DB
From: Michael Klemm <simiklem_at_cip.informatik.uni-erlangen.de>
Date: Mon, 01 Jul 2002 12:21:31 +0200
Message-ID: <3D202D2B.1010103_at_cip.informatik.uni-erlangen.de>
Hi there,
Date: Mon, 01 Jul 2002 12:21:31 +0200
Message-ID: <3D202D2B.1010103_at_cip.informatik.uni-erlangen.de>
Hi there,
it's just a little question about design:
I want to obtain a primary key by using a sequencer. Since I'm using BC4J I want to get the primary key by using a business component. But what is the best way?
- use the application object and a new method getNextPrimaryKey() which queries the sequencer and obtains the key?
- create a entity object or something like that to obtain the key? But how is it done?
Thanks in advance!
Regards
-michael Received on Mon Jul 01 2002 - 12:21:31 CEST