[jboss-user] [EJB 3.0] - Re: Attribute from MappedClass as a part of composit PK ?

Wolfgang Knauf do-not-reply at jboss.com
Fri Jun 19 06:14:35 EDT 2009


you have to synchronize them yourself. So the setter of one attribute has to update the other. This might be a problem for the embedded id, because it cannot set it's timestamp value to the outer class.
But you might add a "@PreUpdate" callback method to your entity and synchronize both values.

Hope this helps


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

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

More information about the jboss-user mailing list