IntelliJ - Persistence QL asks for error checking on sleeping requests

I have a sleep session request using a class recognized as sleeping. This query runs smoothly, but is somehow recognized by IntelliJ IDEA as a Query Queries Quistence - "Failure Resolution Symbol" error

Persistence QL Queries error

I know how to disable the Query Quistence Query check in IntelliJ check options, but is there any way to avoid the error in some other way?

(I am using IntelliJ IDEA 9.0.3)

+6
source share
2 answers

IDEA does not seem to recognize which or which descriptor you are using. Check the project structure β†’ Borders β†’ Hibernate. You should have found the cfg.xml file in the descriptors. If you use packet scanning using the spring session factory definition, you should find the factory bean session. If none of them exist, you can add it.

+11
source
  • Check project structure -> Facets -> Hibernate If you do not have a cfg.xml file, you should add a new one.
+1
source

Source: https://habr.com/ru/post/896199/


All Articles