Oscar Gm wrote:I have the same problem... Did you find a solution?
Vijitha Kumara wrote:
In fact, I'm making a lookup, but it's not working properly
What do you mean, lookup failed or something else? If the former then I think you should fix that first.
Vijitha Kumara wrote:
TestEntity - entity with a @PrePersist method. This entity is staying in the transaction after it is committed by the container
Can you elaborate this little more?
Looking at the error it seems your second insert for auditing also tries to insert the previous entity. Do you have a separate table for Auditing? Just add the table name for the @Entity annotation as well.