I've been wrestling with locking and EclipseLink's caching for a few weeks now and decided to implement my allocation locking using native queries. This however involves creating new entities that get their PK's from a sequence table so now I need to allocate a new value manually.
Is there a easy way to invoke the "get me the next PK for xxx"?