Hi,
I’m trying to control the name of the property (and set) that is generated for a foreign key, by writing
<foreign-key constraint-name=”FK_OMRAADE_BRUKER”>
<many-to-one property=”user”/>
<set property=”areas”/>
</foreign-key>
inside a table definition, but this gives a validate error (‘Attribute “constraint-name” must be declared for element type “foreign-key” ‘) in the hibernate.reveng.xml file and the reverse engineering process ignores the file alltogether. The xml is correct according to the documentation for Hibernate Tools, and as far as can see the DTD (see below) agrees.
I’m using MyEclipse 5GA, Hibernate 3.1 and the reveng file header says <!DOCTYPE hibernate-reverse-engineering PUBLIC “-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN” “http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd” >
What am I missing?
-Mikael