Beginner |
|
Joined: Wed Nov 02, 2005 3:29 pm Posts: 20
|
I have a strange situation that I'm trying to find an easy workaround
for. I'm working with 5 tables, with various FK.
Due to some strange application programming one table
has inconsistet data that is "used" to reference a second
table
The default reverse process generates:
<many-to-one name="orgUnitIdAndorgUnitType" class="ca.ubc.nmc.contacts.db.NcOrgUnit" fetch="select">
<column name="ORG_UNIT_ID" length="10" />
<column name="ORG_UNIT_TYPE" length="4" />
</many-to-one>
Is there a way that I use my own reverse stragtegy to force the
FK columns as just simple string colums rather than the
compound key they are supposed to be?
I realize that I can do it by running the reverse process twice
and excluding the appropriate tables, but that creates maintenance
problems if the reverse has to be run in the furture.
|
|