I am performing a query and I’m expecting lock to fail sometimes. I am catching the exception but i do not want the warning and errors bellow going to log. I want to control this per query or session I don’t want to shut the logging off completely.
04:14:32,107 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (EJB default - 1) SQL Error: 0, SQLState: 55P03
04:14:32,109 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (EJB default - 1) ERROR: could not obtain lock on row in relation ...
04:14:32,110 ERROR [stderr] (EJB default - 1) Exception org.hibernate.PessimisticLockException: could not extract ResultSet
04:14:32,110 ERROR [stderr] (EJB default - 1) Exception message could not extract ResultSet