Comment out the target-* attributes in your GroupBean.
These attributes are used in uni-directional
relationship.

guo
 --- [EMAIL PROTECTED] 的正文:> hi all,
>       i have a GroupBean and UserBean which have 1-->Many
> cmr.
> 
> a group can have many users, and each user has only
> one group.
> i am trying to deploy in weblogic and i have put
> following tags in Groupbean
> 
> /**
>        * @ejb.interface-method
>        * @ejb.relation
>      *    name="GroupsHaveUsers"
>      *    role-name="GroupHasUsers"
>      *    target-ejb="User"
>      *    target-role-name="GroupsHaveUsers"
>      *    target-multiple="yes"
>      */
> public abstract Collection getUsers();
>       
> 
> and following in UserBean
> 
> /**
>        * @return return the User associated to this
> UserInfo
>        * @ejb.interface-method
>        *         view-type="local"
>        * @ejb.relation
>        *      name="GroupsHaveUsers"
>        *      role-name="UsersInGroup"
>        * @weblogic.column-map
>      *    foreign-key-column="groupid_fk"
>      *    key-column="name"
>      */
> 
> but i am still getting this in ejb-jar.xml
> 
> <ejb-relation>
>  
>
<ejb-relation-name>GroupsHaveUsers</ejb-relation-name>
> 
>  <ejb-relationship-role>
>  
>
<ejb-relationship-role-name>GroupHasUsers</ejb-relationship-role-name>
> 
>   <multiplicity>One</multiplicity> 
>  <relationship-role-source>
>   <ejb-name>Group</ejb-name> 
>   </relationship-role-source>
>   <cmr-field>
>   <cmr-field-name>users</cmr-field-name> 
>   </cmr-field>
>   </ejb-relationship-role>
>  <ejb-relationship-role>
>  
>
<ejb-relationship-role-name>UsersInGroup</ejb-relationship-role-name>
> 
>   <multiplicity>One</multiplicity> 
>   <relationship-role-source>
>   <ejb-name>User</ejb-name> 
>   </relationship-role-source>
>  <cmr-field>
>   <cmr-field-name>group</cmr-field-name> 
>   </cmr-field>
>   </ejb-relationship-role>
>   </ejb-relation>
> 
> 
> can anyone help me in finding out what's wrong?
> 
> with best regards
>       marco
> 
> 
> 
>
-------------------------------------------------------
> This SF. Net email is sponsored by: GoToMyPC
> GoToMyPC is the fast, easy and secure way to access
> your computer from
> any Web browser or wireless device. Click here to
> Try it Free!
>
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to