Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] @TableGenerator interaction with out-of-band apps

On Fri, Jun 1, 2012 at 9:16 AM, Andrei Ilitchev <andrei.ilitchev@xxxxxxxxxx> wrote:
The script should follow the same pattern as Eclipselink's table sequencing: if it needs n ids, it should:
begin transaction;
update my_seq = my_seq + n;
select my_seq;
commit transaction;
use n values ending with the returned value:
returned value - n + 1,..., returned value.

Thanks very much.

Best,
Laird
--
http://about.me/lairdnelson


Back to the top