This one time, at band camp, Keith Chew said:

KC >    <!--  Mapping for Role -->
KC >  <class name="com.jungledrum.be.core.data.vo.RoleVo"
KC >key-generator="HIGH/LOW" access="shared" identity="id">
KC >    <map-to table="role_table" xml="role" />
KC >    <field name="id" type="integer">
KC >      <sql name="id" type="integer" />
KC >
KC >    <!--  Mapping for User -->
KC >  <class name="com.jungledrum.be.core.data.vo.UserVo"
KC >key-generator="HIGH/LOW" access="shared" identity="id">
KC >    <map-to table="user_table" xml="user" />
KC >    <field name="roleVo" type="com.jungledrum.be.core.data.vo.RoleVo"
KC >required="true">
KC >      <sql name="role_id" />
KC >      <bind-xml name="role-vo" node="element" />
KC >
KC >
KC >It's identical to Castor's Product ProductGroup example. I just cannot
KC >understand why it cannot fill in the id? Is it because I am using int4 in my
KC >postgresql database? I doubt that's the case.
KC >

I think that the trouble is the sql name in the User class mapping for
the field named roleVo. I'm not sure where the role_id came from in
the sql name, but I believe that this should be pointing to the identity
of the RoleVo object, in this case it would simply be id. I may be
wrong here but seem to remember mixing this up before and this was
my problem.
--

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