This content has been marked as final. Show 2 replies
Anyway to write an object into the db as soon as em.persist is called? I think this will solve the above problem. Kindly help
I added em.flush() just under em.persist() and it's solved the above problem. Hope this helps someone in the future.