Hibernate resource opened but not safely closed
Reports calls to the
openSession() method if the returned
org.hibernate.Session resource is not safely closed.
By default, the inspection assumes that the resources can be closed by any method with 'close' or 'cleanup' in its name.
Use the following options to configure the inspection:
org.hibernate.Sessionresource is allowed to be opened inside a
tryblock. This style is less desirable because it is more verbose than opening a resource in front of a
Whether the resource can be closed by any method call with the resource passed as argument.
Allow resource to be opened inside a 'try' block
Any method may close resource argument
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3