Use the @Version annotation, see EJB 3 Persistence 9.1.17.
@Version
| @Column(name="OPTLOCK")
| protected int getVersionNum() { return versionNum; }
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060877#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...