-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hibernate's legacy org.hibernate.Criteria API is deprecated #55
Comments
Yes we are aware. We plan to move to JPA for GORM 7.0 but since it is a major breaking change that is for a future release. |
I still see the logs with grails 4 and gorm 7.0.8 |
This issue still happens on grails 5 with gorm 7.2.1 This is the data service code which triggers the warning
When
Here is the stacktrace, the code inside And there is the exact line of code |
Is there any good workaround for the this problem ( We currently face the problem with a Grails 5.2.5 app (with org.grails.plugins:hibernate5:7.3.0). We get this error on every create of a domain object as the Having the domain class
and having the following
results in the log
Imagine if you add a few thousand object to the database you get a lot of WARN messages. Thanks for any helpful advice |
For my applications I have added the line to the logback.groovy
|
I don't know if this belongs here or in the grails-data-mapping/grails-datastore-gorm-hibernate-core but these are WARN level messages, which we can disable using logback but the codebase should probably be updated.
The full message is:
HHH90000022: Hibernate's legacy org.hibernate.Criteria API is deprecated; use the JPA javax.persistence.criteria.CriteriaQuery instead
The text was updated successfully, but these errors were encountered: