Skip to content

Commit

Permalink
Enable optimistic-lock on Payment and Invoice, will add to various ot…
Browse files Browse the repository at this point in the history
…her core entities over time
  • Loading branch information
jonesde committed Oct 20, 2017
1 parent 11ae7dd commit 60cb8c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entity/AccountingAccountEntities.xml
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ along with this software (see the LICENSE.md file). If not, see
<!-- mantle.account.invoice -->
<!-- ========================================================= -->

<entity entity-name="Invoice" package="mantle.account.invoice" short-alias="invoices" cache="never">
<entity entity-name="Invoice" package="mantle.account.invoice" short-alias="invoices" cache="never" optimistic-lock="true">
<field name="invoiceId" type="id" is-pk="true"/>
<field name="invoiceTypeEnumId" type="id"/>
<field name="fromPartyId" type="id"/>
Expand Down Expand Up @@ -1170,7 +1170,7 @@ along with this software (see the LICENSE.md file). If not, see
<key-map field-name="deductionTypeEnumId"/></relationship>
<relationship type="one" related="Payment"/>
</entity>
<entity entity-name="Payment" package="mantle.account.payment" short-alias="payments" cache="never">
<entity entity-name="Payment" package="mantle.account.payment" short-alias="payments" cache="never" optimistic-lock="true">
<field name="paymentId" type="id" is-pk="true"/>
<field name="paymentTypeEnumId" type="id"/>
<field name="fromPartyId" type="id" enable-audit-log="update"/>
Expand Down

0 comments on commit 60cb8c9

Please sign in to comment.