You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2026/07/05 05:33:08 UTC

(grails-core) 09/11: Remove stale Hibernate 7 query spec TODOs

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

jamesfredley pushed a commit to branch cleanup/8.0-h7-todo-doc-cleanup
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit fc0e31b3f374bf24a17d941387db48d95740f42e
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Sun Jul 5 00:49:25 2026 -0400

    Remove stale Hibernate 7 query spec TODOs
    
    Assisted-by: Hephaestus:openai/gpt-5.5
---
 .../groovy/grails/gorm/tests/ExecuteQueryWithinValidatorSpec.groovy    | 1 -
 .../groovy/grails/gorm/tests/WhereQueryWithAssociationSortSpec.groovy  | 1 -
 .../grails/gorm/tests/detachedcriteria/DetachedCriteriaJoinSpec.groovy | 3 ---
 .../groovy/grails/gorm/tests/hasmany/HasManyWithInQuerySpec.groovy     | 1 -
 4 files changed, 6 deletions(-)

diff --git a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/ExecuteQueryWithinValidatorSpec.groovy b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/ExecuteQueryWithinValidatorSpec.groovy
index 585f28bb16..bed68e188b 100644
--- a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/ExecuteQueryWithinValidatorSpec.groovy
+++ b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/ExecuteQueryWithinValidatorSpec.groovy
@@ -30,7 +30,6 @@ import spock.lang.Specification
 /**
  * Created by graemerocher on 17/02/2017.
  */
-//TODO Not able to distinguish correctly a field projection without an alias
 class ExecuteQueryWithinValidatorSpec extends Specification {
 
     @AutoCleanup @Shared HibernateDatastore hibernateDatastore = new HibernateDatastore(Named, NameType)
diff --git a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/WhereQueryWithAssociationSortSpec.groovy b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/WhereQueryWithAssociationSortSpec.groovy
index 7303fd7b5e..f3de76357c 100644
--- a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/WhereQueryWithAssociationSortSpec.groovy
+++ b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/WhereQueryWithAssociationSortSpec.groovy
@@ -28,7 +28,6 @@ import spock.lang.Issue
 /**
  * Created by graemerocher on 03/11/16.
  */
-//TODO : How to create an alias inside a closure
 class WhereQueryWithAssociationSortSpec extends GrailsDataTckSpec<GrailsDataHibernate7TckManager> {
     void setupSpec() {
         manager.registerDomainClasses(Club, Team)
diff --git a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/detachedcriteria/DetachedCriteriaJoinSpec.groovy b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/detachedcriteria/DetachedCriteriaJoinSpec.groovy
index 20fcd0bee7..89b82c5c9e 100644
--- a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/detachedcriteria/DetachedCriteriaJoinSpec.groovy
+++ b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/detachedcriteria/DetachedCriteriaJoinSpec.groovy
@@ -46,9 +46,6 @@ class DetachedCriteriaJoinSpec extends HibernateGormDatastoreSpec {
         new DetachedCriteria<>(Club).max(10).offset(0).count() == 4
         Club.where {}.max(2).offset(0).count() == 4
         new DetachedCriteria<>(Club).max(2).offset(0).count() == 4
-//TODO THESE SHOULD NOT PASS!
-//        Club.where {}.max(10).offset(10).count() == 4
-//        new DetachedCriteria<>(Club).max(10).offset(10).count() == 4
     }
 
     def 'check if inner join is applied correctly'(){
diff --git a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/hasmany/HasManyWithInQuerySpec.groovy b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/hasmany/HasManyWithInQuerySpec.groovy
index cbe02b4d27..c8440de3ec 100644
--- a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/hasmany/HasManyWithInQuerySpec.groovy
+++ b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/hasmany/HasManyWithInQuerySpec.groovy
@@ -31,7 +31,6 @@ import spock.lang.Specification
 
 @Issue('https://github.com/grails/gorm-hibernate5/issues/78')
 @Rollback
-//TODO Multi valued paths are only allowed for the member of operator
 class HasManyWithInQuerySpec extends Specification {
 
     @Shared @AutoCleanup HibernateDatastore datastore = new HibernateDatastore(getClass().getPackage())