apache / apache/grails-core

Migrate from Hibernate Criteria to JPA Criteria

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

Description

The Hibernate Criteria API has been deprecated in Hibernate. So we have to move to the JPA Criteria API in GORM.

This may be a good time to deprecate CriteriaBuilder and friends, recommending instead to use where queries and DetachedCriteria

Contributor guide

Open the contributing guide

Research direction

Start by locating GORM's uses of Hibernate Criteria, CriteriaBuilder, and DetachedCriteria, then review the JPA Criteria API migration requirements. The issue provides no file or test entry point, so map the affected code and existing tests first. Done means the relevant GORM Criteria usage is migrated and any deprecation guidance is agreed and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
backend, databases
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.