Hi all,
I've the following problem:
I've mapped principals and roles in a 1..n relationship
When I try to add a role using:
roleHome.create( new RoleData(pPrincipalId, "caller_principal",
"CallerPrincipal") );
I've the following error back
08:53:40,972 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Creation Role failure: Could not create
entity:java.sql.SQLException: ERROR: Attribute 'principalid' specified
more than once
Since I'm already a newbie I can't figure out what this message means.
My cmr generated by xdoclet is:
for jboss:
<relationships>
<ejb-relation>
<ejb-relation-name>user-roles</ejb-relation-name>
<foreign-key-mapping/>
<ejb-relationship-role>
<ejb-relationship-role-name>role-has-user</ejb-relationship-role-name>
<key-fields/>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>user-has-role</ejb-relationship-role-name>
<key-fields>
<key-field>
<field-name>principalId</field-name>
<column-name>principalid</column-name>
</key-field>
</key-fields>
</ejb-relationship-role>
</ejb-relation>
</relationships>
-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user