"wolfc" wrote : Use the @Version annotation, see EJB 3 Persistence 9.1.17.
  | 
  | @Version
  |   | @Column(name="OPTLOCK")
  |   | protected int getVersionNum() { return versionNum; }

Thanks for the reply. but where is the document?

further question:
what's the mechanism using @version? I meant we don't have to do it that way, 
ex. we can use like timestamp field, and treat that field as just regular 
field, before modifying a record, simply compare the timestamp values.

John

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061706#4061706

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061706
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to