--Russ
--__--__--
Message: 2 Date: Fri, 18 Jul 2003 09:08:31 +0200 From: Jean-philippe VIGNIEL <[EMAIL PROTECTED]> Organization: ST To: [EMAIL PROTECTED] Subject: Re: [Xdoclet-user] Pb with *:1 relationship (Thanks) Reply-To: [EMAIL PROTECTED]
--------------040204020905060503080407 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit
Thanks very much for your help. Your solution is not very intuitive but It works:) To resume the thread for the next person who needs for a n-1 relation.:
1-1 relation:
/** @ejb.relation
* name = "Source-Target"
* role-name = "Source"
*
* target-ejb = "Target"
* target-role-name = "Target"
* /
public abstract Target getTarget();
public abstract void setTarget(Target target)1-n relation:
/** @ejb.relation * name = "Source-Target" * role-name = "Source" * * target-ejb = "Target" * target-role-name = "Target" * targte-multiple = "yes" * / public abstract Collection getTarget(); public abstract void setTarget(Collection target)
And the n-1 relation which is not very logical:)
/** @ejb.relation * name = "Source-Target" * role-name = "Source" * * target-ejb = "Target" * target-role-name = "Target" * target-multiple = "yes" * / public abstract Target getTarget(); public abstract void setTarget(Target target)
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
