Change Notes item #658296, was opened at 2002-12-24 21:20
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=381174&aid=658296&group_id=22866

Category: JBossCMP
Group: v3.2
Status: Open
Priority: 5
Submitted By: Alexey Loubyansky (loubyansky)
Assigned to: Nobody/Anonymous (nobody)
Summary: FK fields mapped to PK fields support

Initial Comment:
It's possible to map foreign key fields in one-to-many 
and one-to-one relationships to primary key fields. All is 
needed to assign the same names to the corresponding 
foreign and primary key fields.

Relationships are assigned between ejbCreate and 
ejbPostCreate. This means that relationships are 
accessible in ejbPostCreate and not in ejbCreate.
Relationships are established and removed only with 
creation and removal of entities. Modifications with 
abstract CMR accessors are not allowed as they 
change primary key values.

If ONE side doesn't exist CMR on the MANY side will 
return null value.
If MANY side doesn't exist CMR on the ONE side will 
return empty collection.

If cascade-delete is specified then removal of the ONE 
side will remove the related MANY side. In this case, 
ONE side is removed first breaking the relationship, i.e. 
CMR field on the MANY side in ejbRemove will return 
null.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=381174&aid=658296&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to