Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shangoyanyi/4aaac0c6b77d89e58a09dab4223b72a9 to your computer and use it in GitHub Desktop.
Save shangoyanyi/4aaac0c6b77d89e58a09dab4223b72a9 to your computer and use it in GitHub Desktop.
em.remove(em.contains(entity)? entity: em.merge(entity));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment