What container are you using?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul
Guermonprez
Sent: Thursday, July 08, 2004 6:15 AM
To: [EMAIL PROTECTED]
Subject: [Xdoclet-user] value-object and n-m relations ?


hello,

i have 2 ejb : Company and User.
many-to-many relation. aggregation.

i've read the usefull http://xdoclet.sourceforge.net/valueobjects.html
but i can't get a n-m example working.
how do write the ejb.value-object doclet ?
i have problems with the source generated :

"public void addUsers(igtest.admin.UserVO added)"
should probably be
"public void addUser(igtest.admin.UserVO added)"

"public void setUserss(igtest.admin.UserVO[] Userss)"
should probably be
"public void setUsers(igtest.admin.UserVO[] Users)"

and the generated source don't have import
for java.util.Collection ... probably related to my
wrong ejb.value-object declaration.

if you have a working example with n-m relation
for 2 ejbs with doclet for beans and VO, it would be great.


thanks for your ideas, paul.


what i tried :
in Company.java :
-------------------------------------------
* ATejb.value-object
*   aggregate="igtest.admin.UserVO"
*   aggregate-name="Users"
*   members="igtest.admin.User"
*   members-name="Users"
*   relation="external"
*   type="Collection"   
*/
public abstract Collection getUsers();
-------------------------------------------

in User.java :
-------------------------------------------
* ATejb.value-object
*   aggregate="igtest.admin.CompanyVO"
*   aggregate-name="Companies"
*   members="igtest.admin.Company"
*   members-name="Companies"
*   relation="external"
*   type="Collection"   
*
*/
public abstract Collection getCompanies();
-------------------------------------------




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to