Update of /cvsroot/hibernate/Hibernate2/doc/reference/src
In directory sc8-pr-cvs1:/tmp/cvs-serv14346/doc/reference/src
Modified Files:
components.xml
Log Message:
Added note about composite-elements, not null and Set
Index: components.xml
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/doc/reference/src/components.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** components.xml 10 Jun 2003 10:42:31 -0000 1.3
--- components.xml 8 Jul 2003 20:29:31 -0000 1.4
***************
*** 164,167 ****
--- 164,178 ----
<para>
+ Please note that a composite element mapping doesn't support null-able properties
+ if you're using a <literal><set></literal>. Hibernate
+ has to use each columns value to identify a record when deleting objects
+ (there is no separate primary key column in the composite element table),
+ which is not possible with null values. You have to either use only
+ not-null properties in a composite-element or choose a
+ <literal><list></literal>, <literal><map></literal>,
+ <literal><bag></literal> or <literal><idbag></literal>.
+ </para>
+
+ <para>
A special case of a composite element is a composite element with a nested
<literal><many-to-one></literal> element. A mapping like this allows
|