Hi,

for some reason I need a sequence generator, used to create unique keys
explicitly.

Is there any kind of "standalone" TableGenerator available in JPA ?

What I want to do is something like that:

"TableGenerator" genId = new "TableGenerator" (em, "XX") ;

Long next = genId.getNext () ;

myEntity.setYY (next) ; // cannot use implicit generated keys.

Thanx a lot for your help.

Norbert




Reply via email to