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

(grails-core) branch 8.0.x-hibernate7 updated (094c6f136f -> b02d617d5b)

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

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


    from 094c6f136f Merge branch '8.0.x-stage-hibernate7' into 8.0.x-hibernate7
     new a4095a0856 Add missing domains
     new b02d617d5b Fix bad compareTo vs equals implementation

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../src/test/groovy/grails/gorm/specs/WhereMethodSpec.groovy          | 2 +-
 .../groovy/org/apache/grails/data/testing/tck/domains/Person.groovy   | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)


(grails-core) 01/02: Add missing domains

Posted by jd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit a4095a08562b44b86703163047e68c09a86df688
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Thu May 14 09:16:34 2026 -0400

    Add missing domains
---
 .../src/test/groovy/grails/gorm/specs/WhereMethodSpec.groovy            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grails-datamapping-core-test/src/test/groovy/grails/gorm/specs/WhereMethodSpec.groovy b/grails-datamapping-core-test/src/test/groovy/grails/gorm/specs/WhereMethodSpec.groovy
index 3d5196592a..a1064dde8d 100644
--- a/grails-datamapping-core-test/src/test/groovy/grails/gorm/specs/WhereMethodSpec.groovy
+++ b/grails-datamapping-core-test/src/test/groovy/grails/gorm/specs/WhereMethodSpec.groovy
@@ -46,7 +46,7 @@ class WhereMethodSpec extends GrailsDataTckSpec<GrailsDataCoreTckManager> {
     def gcl
 
     void setupSpec() {
-        List<Class> list = [Continent, Group, Proposal, Advisor]
+        List<Class> list = [Continent, Group, Proposal, Advisor, Person, Pet, Face, Nose, Country]
 
         gcl = new GroovyClassLoader()
         list << gcl.parseClass('''


(grails-core) 02/02: Fix bad compareTo vs equals implementation

Posted by jd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit b02d617d5be6d7c0cf64fb21f3cfeda10c91ff15
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Thu May 14 09:32:42 2026 -0400

    Fix bad compareTo vs equals implementation
---
 .../groovy/org/apache/grails/data/testing/tck/domains/Person.groovy   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/domains/Person.groovy b/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/domains/Person.groovy
index 9f11a39911..895df89aed 100644
--- a/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/domains/Person.groovy
+++ b/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/domains/Person.groovy
@@ -80,6 +80,8 @@ class Person implements Serializable, Comparable<Person>, AsyncEntity<Person> {
 
     @Override
     int compareTo(Person t) {
-        age <=> t.age
+        age <=> t.age ?:
+                firstName <=> t.firstName ?:
+                        lastName <=> t.lastName
     }
 }