Is it possible to force fields that are used as a foreign key in a one-to-many relationship to be "NOT NULL"?

<class name="Parent">

    <set role="Children">
      <key column="Parent"/>
      <one-to-many class="Child"/>
    </set>

</class>

I don't like the PARENT column of the CHILD table to be nullable. Is this possible using Hibernate 1.2.3?

TIA,

Ugo



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel




Reply via email to