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
Post a Comment