This post is older than a year. Consider some information might not be accurate anymore.
Working with Hibernate and Oracle DB 10 g lead to a massive amount of warnings on the logs. This post demonstrates how to filter these warnings, if they don’t apply to the situation, in JBoss EAP or Wildfly.
WARN org.hibernate.loader.Loader - HHH000444: Encountered request for locking however dialect reports that database prefers locking be done in a separate select (follow-on locking); results will be locked after initial query execute
See HHH-9097 for more details. To avoid the noise, you can setup JBoss EAP or Wildfly to filter this kind of messages. Run the CLI (command line interface):
/subsystem=logging/console-handler=CONSOLE:write-attribute(name=filter-spec,value=not(match("HHH000444")))
/subsystem=logging/periodic-rotating-file-handler=FILE:write-attribute(name=filter-spec,value=not(match("HHH000444")))
The first cli instruction will apply the filter in the console logger and the second for the periodic rotating file handler. See Filter Expressions for Logging for more details.