JPA EntityManager operations order

I have run into interesting issue recently. I use in the project JPA + Hibernate + EJB. The issue concerns saving and deleting entities in the same transaction. Database table which is used has an unique constraint defined on two columns. What I have done was removing entity calling [crayon-5a0f6c04458c5999942280/] then the new entity has been added with the same values in two properties associated with columns used in the unique constraint but different values in other properties using: [crayon-5a0f6c04458cb498728636/]

Continue Reading

Site Footer