I am really struggling with reveng.xml now that the documentation seems to have vanished. I did have
this page bookmarked which I found quite useful but now it is a 404.
My problem is that I am using auto-generation of both source and hbm.xml files and one of my hbm.xml files has the following:
Code:
<set name="HTActivities" inverse="false" lazy="true" table="htDayEntryToActivity" fetch="select">
<key>
<column name="day_entry_id" not-null="true" />
</key>
<many-to-many entity-name="uk.co.prodia.prosoc.domainmodel.HTActivity">
<column name="activity_id" not-null="true" />
</many-to-many>
</set>
I would like to change that using the reveng.xml file so that it has:
Code:
lazy="false"
The table
htDayEntryToActivity is a simple join table that holds the two primary keys between
htDayEntry and
htActivity. I assume I need something like:
Code:
<table name="htDayEntryToActivity" catalog="habittracker">
<foreign-key constraint-name="fk_htDayEntryToActivity_activity_id">
<set lazy="false"/>
</foreign-key>
</table>
but that does not work as it throws a parse error:
Quote:
Attribute "lazy" must be declared for element type "set".
Can anyone provide a sample code snippet that would do that? If anyone has a link to the documentation that would also be very handy!