Skip to content

Why injected EntityManager performs insert instead of update? #1152

Answered by roxblnfk
MartkCz asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you resolve ORM via class, not interface. That's why you get a new ORM with a clean heap ant it is trying to insert the entity because it looks new for the ORM

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MartkCz
Comment options

@roxblnfk
Comment options

@MartkCz
Comment options

Answer selected by MartkCz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants