[jboss-user] [EJB 3.0] - Re: EntityManager is loosing updates

gnulp do-not-reply at jboss.com
Mon Dec 4 13:11:41 EST 2006


use the versioning-mechanism of the entity-manager - I think you will see some exceptions then ...


  | 
  |     java.lang.Long version;
  | 
  |     /**
  |      * Get the version property.
  |      * 
  |      * @return java.lang.Long The value of version
  |      */
  |     @javax.persistence.Version
  |     public java.lang.Long getVersion()
  |     {
  |         return this.data.version;
  |     }
  | 
  | 
  |     ....
  | 
  | 



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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991064



More information about the jboss-user mailing list