Armin Waibel escribió: > Hi Jose, > > I reviewed your example and now I'm confused. You define the relation > between A and B as 1:n, but in metadata descriptor you set the PK of B > as FK in 1:n relation > > <collection-descriptor name="items" element-class-ref="pruojb.B" > auto-retrieve="true" auto-update="false" auto-delete="false"> > <inverse-foreignkey field-ref="id"/> > </collection-descriptor> > > In this case you can always add exactly one B to each A object. > Wouldn't it be better to use a 1:1 relation between A and B or did you > post a wrong mapping? Yes you are right. I think I should change mapping to a 1:1 relation. But we have been using that mapping and had very little problems. Anyway, I will try to improve mapping and correct some problems.
Thank you again. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
