Skip to content

Commit

Permalink
Add on-delete="cascade"
Browse files Browse the repository at this point in the history
to AcctLock, BalanceCache and Checkpoint
  • Loading branch information
ar committed Apr 30, 2020
1 parent 525323b commit ea27be2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
</meta>
<composite-id unsaved-value="any">
<key-many-to-one name="journal" class="org.jpos.gl.Journal"
foreign-key="FKAccountLockJournal" column="journal"/>
foreign-key="FKAccountLockJournal" column="journal" on-delete="cascade"/>
<key-many-to-one name="account" class="org.jpos.gl.Account"
foreign-key="FKAccountLockAccount" column="account" />
foreign-key="FKAccountLockAccount" column="account" on-delete="cascade" />
</composite-id>
</class>
</hibernate-mapping>

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
<key-many-to-one name="journal" class="org.jpos.gl.Journal"
foreign-key="FKBalanceCacheJournal" column="journal" />
<key-many-to-one name="account" class="org.jpos.gl.Account"
foreign-key="FKBalanceCacheAccount" column="account" />
foreign-key="FKBalanceCacheAccount" column="account" on-delete="cascade">
</key-many-to-one>
<key-property name="layers" type="string" length="32" />
</composite-id>
<property name="ref" type="long" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<key-many-to-one name="journal" class="org.jpos.gl.Journal"
foreign-key="FKCheckpointJournal" column="journal" />
<key-many-to-one name="account" class="org.jpos.gl.Account"
foreign-key="FKCheckpointAccount" column="account" />
foreign-key="FKCheckpointAccount" column="account" on-delete="cascade"/>
</composite-id>
<property name="balance" type="big_decimal">
<column name="balance" sql-type="numeric(14,2)" not-null="true" />
Expand Down

0 comments on commit ea27be2

Please # to comment.