apache / apache/grails-core

Hibernate's legacy org.hibernate.Criteria API is deprecated

Open
#14,470 6 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-data-hibernate5
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

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`

Contributor guide

Open the contributing guide

Research direction

Start by locating the code paths that emit the HHH90000022 warning and determine whether they are in grails-core or grails-data-mapping/grails-datastore-gorm-hibernate-core. Done means the affected legacy Criteria API usage has been identified and the codebase no longer emits this warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
backend, databases
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.