This one time, at band camp, Smith, Kevin said:

SK><class name="User" identity="userid" cache-type="unlimited"
SK>      auto-complete="false">
SK>
SK>   <map-to table="USERS" />
SK>
SK>   <field name="userid" type="java.lang.String" set-method="setUserId"
SK>         get-method="getUserId">
SK>      <sql name="USER_ID" type="varchar" />
SK>   </field>
SK>
SK>   <field name="password" type="java.lang.String" set-method="setPassword"
SK>         get-method="getPassword">
SK>      <sql name="PASSWORD" type="varchar" />
SK>   </field>
SK>
SK>   <field name="groups" type="Group" set-method="setGroups"
SK>         get-method="getGroups" collection="collection">
SK>      <sql many-table="USER_GROUPS" many-key="USER_ID" />
SK>   </field>
SK></class>
SK>
SK><class name="Group" identity="id" cache-type="unlimited"
SK>            auto-complete="false">
SK>        <map-to table="GROUPS" />
SK>
SK>   <field name="id" type="long" set-method="setId" get-method="getId">
SK>      <sql name="GROUP_ID" />
SK>   </field>
SK>
SK>   <field name="name" type="string" set-method="setName"
SK>get-method="getName">
SK>      <sql name="GROUP_DESCRIPTION" />
SK>   </field>
SK>
SK></class>

According to the mapping, class Group is missing a relation to class
User. Castor only supports bi-directional relations. There are
instances where Castor will not necessarily enforce this, but the
lack of bi-directional relations can cause some odd problems.

I'm not sure if this is the problem, but it's worth a try.

Bruce
--

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to