For a Set the constraint name defined in XML is not considered for MetaModel and SchemaExport: {code} <class name="PersonGroup"> <id name="id" type="long"> <generator class="native" /> </id> <set name="persons" table="person"> <key column="group" foreign-key="person_persongroup_fk"/> <element column="name" type="string" not-null="true" /> </set> </class> {code}
Expected result: foreign key constraint with name "person_persongroup_fk" In Version 4.3. the foreign key constraint creation worked fine.
|