Peter Shillan wrote:

> Putting in a <column-name> here may make the relationship OK but if I do 

> this, I have no way of creating a Message bean as it requires a Message 

> bean to be there as it's parent.


I'm not sure what you are trying to do here, but it sounds like you want 
a not null foreign-key or a foreign-key in the priamry-key.  Neither of 
these are supported currently (i.e., they don't work).  Support will be 
added in the future, but it is not as easy as you would think.

 
> So this leads me to the question again: is it possible to have an Entity

> Bean that can be in a relationship with its own type? Perhaps there is a 

> way to fudge a 'root' bean by using a direct database insert where it's 

> parent is itself and then use this Bean as the parent to all other root 

> Beans?


Yes an entity can have a relationship with itself (I have a test case 
for this), but you can have a not null relationship.

-dain



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to