class Profile { private Group group; }
class Group {
}
<class-descriptor class="Profile" table="Profiles">
<field-descriptor name="profileId" column="profileid" jdbc-type="INTEGER"
primarykey="true" autoincrement="true" sequence-name="UniqueIdentifier"
/>
<field-descriptor name="groupId" column="groupid" jdbc-type="INTEGER" access="anonymous" />
<reference-descriptor name="Group">
<foreignkey field-ref="groupId"/>
</reference-descriptor>
</class-descriptor>
<class-descriptor class="Group" table="Groups">
<field-descriptor name="groupId" column="groupid" jdbc-type="INTEGER" access="anonymous"
primarykey="true" autoincrement="true" sequence-name="UniqueIdentifier"
/>
</class-descriptor>
Note that the primary keys are all anonymous access -- the database keys are not visibile at the object level.
"select profiles from Profile where profile.group = $1"
and bind the Group identity? I am trying to keep anonymous keys
Thanks in advance!
-Brian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]