I have the following mapping:
{code:xml} <properties name="uniqueCode" unique="true"> <property name="code"> <column name="code" sql-type="varchar(255)" not-null="true" /> </property> <many-to-one name="root" not-null="false" foreign-key="FKAccountChart" lazy="false" /> </properties> {code} that used to generate the following constraint:
{code} alter table acct add constraint UK_fxplc01ecyoe1sjdrxe6yp2ne unique (root, code);` {code} after upgrading Hibernate, it now generates:
{code} alter table acct add constraint UK_fxplc01ecyoe1sjdrxe6yp2ne unique (code); {code} |
|