Login  Register

[OFBiz] Dev - relation type one/many in entitymodel.xml

Posted by Adam Heath-2 on Sep 06, 2005; 6:24pm
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Dev-relation-type-one-many-in-entitymodel-xml-tp165979.html

So, I was thinking over the weekend; why do we have to specify the type of a
relation on an entity definition?  Shouldn't it be able to be inferred by the
set of fields you are linking to?

If the set of fields on the target entity is not it's primary key set, then
it's a many relation; otherwise, it's just a one relation.

If my thinking is correct, then we could remove the need of the type attribute
alltogether.
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev