openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gene Wu <>
Subject Re: sequence per entity
Date Thu, 16 Aug 2007 10:06:49 GMT

I think there is no possibility to have different sequence with the standard

If this requirement is critical one, and you don't care to have a customized
version of OpenJPA. My initial thought is a sequence plug-in, you can check
"org.apache.openjpa.jdbc.conf.JDBCSeqValue" as a reference.



Uri Boness wrote:
> I would like to have a parent class for all entities (e.g. BasicEntity)
> which also holds the id field. When mapping the id with a sequence
> generator, currently openjpa generates only one sequence in the database
> (postgresql 8.2). Is there a way to configure openjpa (or maybe setup the
> mappings in a special way) so that a a different sequence will be used for
> different entities (while still keeping the id field in the BasicEntity
> parent class)?
> cheers,
> Uri

View this message in context:
Sent from the OpenJPA Users mailing list archive at

View raw message