Damon Hon wrote:
Hi,
Is it possible to create 1:N or M:N unidirectional relationships using the @ejb:relation tag?
Of course.

According to the documentation, there is a 'target-multiple' attribute that i can use but that
only affects the one side. I have tried this out and can create N:1 or 1:1 unidirectional relations, but not
1:N or M:N.
target-multiple is for unidirectional relationships where the *target* relationship is the one with multiplicity of "Many". If the current side is the Many side, you don't need to worry -- xdoclet will notice the "Collection" return type and treat it as Many.

Read the samples. There are plenty examples there.

--
MB



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to