When doing some queries on a view using JPA (2.1) with Hibernate , I'm having this warning . Although it's working and just being a warning , it bothers me a little.
WARN org.hibernate.loader.Loader - HHH000444: Encountered request for locking in a separate select (follow-on locking); results will be locked after initial query execute
This occurs in the following environment:
- JPA 2.1 / Hibernate 4.3.0.Final;
- WildFly 8.0.0.Final;
- Oracle DB 10g;
In addition, by doing research on this warning, I came up with a bug report for the Hibernate staff who turned out to be rejected . In the bug, the problem also seems to occur in Oracle 11g .
How to correct or avoid this warning?