It is a question of cardinality of the relationship _end_. Set a NOT NULL constraint on the FK will give you the exception. The full cardinality of the relation will then be: (Entity A)1:1 <--is a--> 1:1(Entity B) which means: "one and exactly one is A one and exactly one B" in contrast to "one or no A is one or no B": 0:1<--is a-->0:1.
JBoss has obviously in your case the 0 as default for the lower boundary of relationship ends. But this should come from the NOT NULL attribute of DatabaseMetadata. bax View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836972#3836972 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836972 ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
