openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nasseria1 <>
Subject Manipulating sequence generated value before persisting entities
Date Wed, 24 Nov 2010 00:12:25 GMT

Hi all,

We want to use a custom sequence generator so that manipulating its
generated value before persisting it into database would be possible.

For example, the generated value for a sample primary key that used database
sequence generator is 205 and before persisting the entity, we just want to
manipulate the generated value using a specified algorithm. As it's clear, I
want to use the database sequence, but modifying the generated value is the
main requirement.

To resolve this, I inspected the generated value in @PrePersist entity
callback, but it did not include the generated value.

I would appreciate for any ideas
View this message in context:
Sent from the OpenJPA Developers mailing list archive at

View raw message