On Jul 22, 2004, at 2:07 AM, Henri Tremblay wrote:

I don't know if I made myself clear.
I can provide a test case if needed (and continue the discussion in the
forum which is probably a more appropriate place I think).

You didn't. I guess you have to rethink what "not null" means again. It means an entity must have a relationship to another entity. So, if A and B have a relationship and B has a "not null" foreign key, then B needs a reference to A. Even if you remove the B from the collection of B's in the A.


This is an FAQ. You need a bidirectional relationship in this case. It's not a "Hibernate requirement", but just natural for your data model.

--
Christian Bauer
+49 171 455 66 53

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]
http://jboss.com



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to