Skip to content

Instantly share code, notes, and snippets.

@DavideD
Created March 27, 2018 10:13
Show Gist options
  • Save DavideD/e5dfa6d12525dc22527994c91f65131d to your computer and use it in GitHub Desktop.
Save DavideD/e5dfa6d12525dc22527994c91f65131d to your computer and use it in GitHub Desktop.
// tx Begin
EntityManager em = ...
PurchasedOrder order = em.find( PurchaseOrder.class, "5ab88323191bb91e78f9e33d" );
order.setTota( total );
order.purchaseOrderNo( orderNo );
// tx Commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment