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 -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -