Concurrent conditional inserts in Hibernate -


i implement call conditional insert using hibernate. let's have entity named maps corresponding table a. before persiting new row table want't check if row present , insert new 1 if isn't. have multiple clients concurrently write table a.

in opinion have lock entire table before doing check prevent concurrent access many clients.

so question how in hibernate. possible. or wrong , there maybe different solution.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -