This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit 0e8fd03e56c2574e87ac824cd7831221e803873d
Merge: 9f0a8a8b15 dcd19bc8a0
Author: James Daugherty <[email protected]>
AuthorDate: Thu Oct 8 19:48:18 2026 -0400

    Merge pull request #16548 from gustavoharff/feat/hibernate7-sql-projection
    
    Hibernate 7: support sqlProjection and sqlGroupProjection in criteria 
queries

 .../grails/orm/HibernateCriteriaBuilder.java       | 113 +++++
 .../query/GrailsSqlProjectionFunction.java         |  99 ++++
 .../GrailsSqlProjectionFunctionContributor.java    |  37 ++
 .../query/GrailsSqlRestrictionFunction.java        |   2 +-
 .../hibernate/query/JpaCriteriaQueryCreator.java   |  53 ++-
 .../orm/hibernate/query/JpaProjectionAdapter.java  |  11 +-
 .../hibernate/query/JpaProjectionTranslator.java   |  73 +++
 .../orm/hibernate/query/JpaQueryContext.java       |  24 +
 .../orm/hibernate/query/PredicateGenerator.java    |  21 +-
 .../orm/hibernate/query/SqlGroupProjection.java    |  65 +++
 .../grails/orm/hibernate/query/SqlProjection.java  | 275 +++++++++++
 .../grails/orm/hibernate/query/SqlRestriction.java |   4 +-
 .../org.hibernate.boot.model.FunctionContributor   |   1 +
 .../gorm/tests/SqlProjectionHibernate7Spec.groovy  | 214 +++++++++
 .../JpaCriteriaQueryCreatorSpec.groovy             |  94 ++++
 .../JpaProjectionTranslatorSpec.groovy             |  67 +++
 ...ibernateCriteriaBuilderSqlProjectionSpec.groovy | 514 +++++++++++++++++++++
 .../query/JpaProjectionAdapterSpec.groovy          |  39 ++
 .../orm/hibernate/query/JpaQueryContextSpec.groovy |  26 ++
 .../orm/hibernate/query/SqlProjectionSpec.groovy   | 118 +++++
 .../docs/src/docs/asciidoc/querying/criteria.adoc  |  64 +++
 21 files changed, 1892 insertions(+), 22 deletions(-)

Reply via email to