Skip to content

Commit

Permalink
Issue with HBM properties
Browse files Browse the repository at this point in the history
See https://hibernate.atlassian.net/browse/HHH-10982

We temporarily disable the automatic constraint creation.

This temporary change requires a manual:

   alter table acct add constraint AccountRootCode unique (root, code);
  • Loading branch information
ar committed Jul 21, 2016
1 parent 1d24378 commit ca81430
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/minigl/src/main/resources/org/jpos/gl/Account.hbm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
</id>

<discriminator column="subclass" type="string" length="1" />
<properties name="uniqueCode" unique="true">
<many-to-one name="root" not-null="false" foreign-key="FKAccountChart" lazy="false" />
<!-- properties name="uniqueCode" unique="true" see HHH-10982 -->
<property name="code">
<column name="code" sql-type="varchar(255)"
not-null="true" index="acctCode" />
<column name="code" sql-type="varchar(255)" not-null="true" />
</property>
</properties>
<many-to-one name="root" not-null="false" foreign-key="FKAccountChart" lazy="false" />
<!-- /properties -->

<property name="description" />
<property name="tags" type="org.jpos.ee.usertype.TagsType">
<column name="tags" sql-type="varchar(255)" not-null="false" />
Expand Down

0 comments on commit ca81430

Please # to comment.