Hi , iam using JPA with Hiberante provider , How can i ensure that @PrePersist and the "Peristing" process to be executed in synchronized mode , i mean i don't wont other thread to execute @PrePersist before the previous one has already saved into DB , is this supported By JPA by default or is there any extras i should do , Thanks
Hi , Iam already using ThreadLocal but my case is that i want to fetch the Id (Max + 1) from the DB during the PrePersist and i want to make sure that no other thread will intrupt this by fetching the same value from the DB , Thanks
OCP , SCJP 5.0
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads