Hi,
I am using the latest nightly build from hibernate tools in order to get a correct naming of foreign-key properties.
Problem is that the generated properties are named in a not predictable manner as i want to do them.
There are 4 foreign keys in my table, if i put in one <foreign-key> fragment, the resulting property of the foreign key is generated correctly.
If I specify all four elements, one naming is always broken. I code them always in the same manner:
Code:
<foreign-key foreign-table="AUCTIONS" constraint-name="auction">
<column-ref local-column="AUCTION_ID" foreign-column="ID" />
<many-to-one property="auction" />
</foreign-key>
In this case I want to have the resulting property named "auction".
Do I make something wrong with the "constraint-name" attribute?
How do I have to handle it? Filling in the FK constraint here produces errors.
Other strings dont seem to affect anything, what is it for?
Thx for help,
cheers,
Gerald