This content has been marked as final.
Show 1 reply
-
1. Re: Question about sequences and entity ejbs 3.0
fhh Apr 2, 2007 6:12 PM (in response to balteo)Well on my database primary keys are usually not changed by an update. So your example would look like this:
pk key name
1 1 johm (this is an insert)
1 1 john (this is an update)
2 2 Pat (this is an insert)
If you want a column that increments on updates look at the @version annotation or use a trigger.
Regards
Felix