Norbert, There is no such "standalone" TableGenerator in JPA but some solution to this has been recently posted here:
http://n2.nabble.com/Access-Oracle-Sequence-using-OpenJPA-tp2227943p2227943.html Hope this helps. Greetings, Milosz > 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 > > > > >
