If you try removing the setter, I don't believe Hibernate will be able to set the value when it initializes the object from the database. You could try removing it and see what happens.
Matt On Thu, Sep 4, 2008 at 3:43 AM, Kinski <[EMAIL PROTECTED]> wrote: > > From the online > docs...http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/ > 2.2.1.2. Versioning for optimistic locking > > The application must not alter the version number set up by Hibernate in any > way. To artificially increase the version number, check in Hibernate Entity > Manager's reference documentation LockMode.WRITE > -- > View this message in context: > http://www.nabble.com/Optimistic-Locking---User-version-property-tp19306746s2369p19306910.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]