[jboss-user] [EJB 3.0] - Re: How to save entities with PrimaryKeyJoinColumn?
jeff.rosen
do-not-reply at jboss.com
Tue Apr 8 16:33:46 EDT 2008
I'm taking a wild guess here, but you're defining 2 entities that have a one-to-one relationship and are joined by their primary keys, so have you implemented those semantics in your java classes? For example, what happens if I call setFieldId on Field, does it's associated FieldAccess instance have it's fieldId kept in sync? What about vice versa? And for the getters?
Given the life-cycles of each type, can you get by with a single fieldId property in just one of the classes?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142507#4142507
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142507
More information about the jboss-user
mailing list