Skip to content

Instantly share code, notes, and snippets.

@sventschui
Created May 24, 2012 08:32
Show Gist options
  • Save sventschui/2780224 to your computer and use it in GitHub Desktop.
Save sventschui/2780224 to your computer and use it in GitHub Desktop.
Ist dies der korrekte Ansatz um eine "detached" Entity zu löschen?
public void delete(Entity e) {
this.em.remove(em.find(Entity.class, e.getId()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment