I am a total newby on Hibernate so any info I could get on this would be appreciated. I have a need to add at new table to en existing set of tables that are predefined in an existing application. It currently has something to the effect of the following...
Code:
<joined-subclass name="TestSubDO" table="testsub">
<key column="testId" />
<property name="xId" column="xId" type="string" />
<property name="y" column="y" type="string" />
<set name="testa" table="testa" cascade="all">
<key column="testId" />
<element column="Value" type="string" />
</set>
<set name="testb" table="testb" cascade="all">
<key column="testId" />
<element column="Value" type="string" />
</set>
<!-- <list name="testc" table="testc">
<key column="testId" />
<list-index column="testContext" name="testContext" type="string"/>
<property name="testValue" type="string" />
<column="testValue" name="testValue" type="string" />
</property>
</list> -->
</joined-subclass>
This clearly doesn't work for the list I have commented out but I need to insert a table here that has three strings with one of them being the testId which will be a FK to the superclass that this subclass is joined to. The FK relationship should be there but there will not be any primary key in this table. I am struggling to figure out how that would be implemented in this situation. Any ideas?