diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c50533e97bb..a895884f976 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -61,6 +61,13 @@ jobs: repo: grails/gorm-hibernate5 ref: ${{ steps.extract_branch.outputs.value }} token: ${{ secrets.GH_TOKEN }} + - name: Invoke the Java CI workflow in GORM Hibernate6 + uses: benc-uk/workflow-dispatch@v1.2 + with: + workflow: Java CI + repo: grails/gorm-hibernate6 + ref: ${{ steps.extract_branch.outputs.value }} + token: ${{ secrets.GH_TOKEN }} - name: Invoke the Java CI workflow in GORM MongoDB uses: benc-uk/workflow-dispatch@v1.2 with: diff --git a/grails-datastore-gorm-rx/src/test/groovy/org/grails/gorm/rx/services/implementers/ObservableServiceTransformSpec.groovy b/grails-datastore-gorm-rx/src/test/groovy/org/grails/gorm/rx/services/implementers/ObservableServiceTransformSpec.groovy index 82f79bacb81..7fe208f0ae3 100644 --- a/grails-datastore-gorm-rx/src/test/groovy/org/grails/gorm/rx/services/implementers/ObservableServiceTransformSpec.groovy +++ b/grails-datastore-gorm-rx/src/test/groovy/org/grails/gorm/rx/services/implementers/ObservableServiceTransformSpec.groovy @@ -384,19 +384,19 @@ return Book.classLoader } } -//@Entity -//class Book { -// String title -//} -// -// -//@Service(Book) -//abstract class BookService { -// abstract Observable find(String title) -// -// Observable findOne(title) { -// RxServiceSupport.create { -// Book.findWhere(title:title) -// } -// } -//} +@Entity +class Book { + String title +} + + +@Service(Book) +abstract class BookService { + abstract Observable find(String title) + + Observable findOne(title) { + RxServiceSupport.create { + Book.findWhere(title:title) + } + } +} diff --git a/grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/DirtyCheckingSpec.groovy b/grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/DirtyCheckingSpec.groovy index 4aa7521ea64..ceebc987cc8 100644 --- a/grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/DirtyCheckingSpec.groovy +++ b/grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/DirtyCheckingSpec.groovy @@ -151,7 +151,7 @@ class DirtyCheckingSpec extends GormDatastoreSpec { TestAuthor.deleteAll() } - @IgnoreIf({ Boolean.getBoolean("hibernate5.gorm.suite")}) // because one-to-one association loads eagerly in the Hibernate + @IgnoreIf({ Boolean.getBoolean("hibernate5.gorm.suite") || Boolean.getBoolean("hibernate6.gorm.suite")}) // because one-to-one association loads eagerly in the Hibernate void "test initialized proxy is not marked as dirty"() { given: diff --git a/grails-datastore-gorm/src/test/groovy/grails/gorm/services/MethodValidationTransformSpec.groovy b/grails-datastore-gorm/src/test/groovy/grails/gorm/services/MethodValidationTransformSpec.groovy index 638079824d1..560011f6215 100644 --- a/grails-datastore-gorm/src/test/groovy/grails/gorm/services/MethodValidationTransformSpec.groovy +++ b/grails-datastore-gorm/src/test/groovy/grails/gorm/services/MethodValidationTransformSpec.groovy @@ -1,5 +1,7 @@ package grails.gorm.services +import grails.gorm.annotation.Entity +import jakarta.validation.constraints.NotNull import org.grails.datastore.gorm.validation.jakarta.services.ValidatedService import org.grails.datastore.mapping.validation.ValidationException import spock.lang.Specification @@ -79,12 +81,12 @@ class Foo { } } -//@Service(Foo) -//interface MyService { -// -// Foo find(@NotNull String title) -//} -//@Entity -//class Foo { -// String title -//} +@Service(Foo) +interface MyService { + + Foo find(@NotNull String title) +} +@Entity +class Foo { + String title +}