This is an automated email from the ASF dual-hosted git repository. borinquenkid pushed a commit to branch 8.0.x-hibernate7-dev in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit a11183cb22a6bf61c3e1525d04135c1bc621f667 Author: Walter Duque de Estrada <[email protected]> AuthorDate: Tue Mar 3 20:24:00 2026 -0600 rename for Hibernate7OptimisticLockingSpec --- grails-data-hibernate7/README.md | 22 +++++++++++----------- ...oovy => Hibernate7OptimisticLockingSpec.groovy} | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/grails-data-hibernate7/README.md b/grails-data-hibernate7/README.md index b0e11d7829..9a6d018357 100644 --- a/grails-data-hibernate7/README.md +++ b/grails-data-hibernate7/README.md @@ -28,18 +28,18 @@ The following tests are currently skipped in the `grails-data-hibernate7:core` t These tests live in `grails-datamapping-tck` and are deliberately excluded for Hibernate 7 because the underlying feature is not yet implemented or behaves differently: -| TCK Spec | # skipped | Skip condition | Reason / notes | -|----------|-----------|----------------|----------------| -| `DirtyCheckingSpec` | 6 | `@IgnoreIf(hibernate7.gorm.suite == true)` | Hibernate 7 dirty-checking semantics differ; the entire spec is disabled | -| `NamedQuerySpec` | 38 | `@IgnoreIf(hibernate7.gorm.suite == true)` | Named query support not yet ported to Hibernate 7 | +| TCK Spec | # skipped | Skip condition | Reason / notes | +|----------|-----------|----------------|------------------------------------------------------------------------------------------------| +| `DirtyCheckingSpec` | 6 | `@IgnoreIf(hibernate7.gorm.suite == true)` | Hibernate 7 dirty-checking semantics differ; the entire spec is disabled | +| `NamedQuerySpec` | 38 | `@IgnoreIf(hibernate7.gorm.suite == true)` | Named query support not yet ported to Hibernate 7 | | `GroovyProxySpec` | 5 | `@IgnoreIf(hibernate5/6/7.gorm.suite)` | Groovy proxy support requires `ByteBuddyGroovyProxyFactory`; excluded for all Hibernate suites | -| `OptimisticLockingSpec` | 3 | `@IgnoreIf` (detects Hibernate datastore on classpath) | Hibernate has its own `Hibernate6OptimisticLockingSpec` replacement | -| `FindByExampleSpec` | 2 | `@IgnoreIf(hibernate6/7.gorm.suite == true)` | Find-by-example not implemented for Hibernate 7 | -| `UpdateWithProxyPresentSpec` | 2 | `@IgnoreIf(hibernate7.gorm.suite == true)` | Proxy update behaviour differs in Hibernate 7 | -| `RLikeSpec` | 1 | `@IgnoreIf(hibernate7.gorm.suite == true)` | `rlike` not supported in HQL / H2 in Hibernate 7 mode | -| `DirtyCheckingAfterListenerSpec` | 1 | `@PendingFeatureIf(!hibernate5/6/mongodb)` | `test state change from listener update the object` — pending for Hibernate 7 | -| `DomainEventsSpec` | 1 | `@PendingFeature(reason='Was previously @Ignore')` | `Test bean autowiring` — pending across all suites | -| `WhereQueryConnectionRoutingSpec` | 5 | `@Requires(manager.supportsMultipleDataSources())` | Multiple datasource routing not supported in the TCK test manager | +| `OptimisticLockingSpec` | 3 | `@IgnoreIf` (detects Hibernate datastore on classpath) | Hibernate has its own `Hibernate7OptimisticLockingSpec` replacement | +| `FindByExampleSpec` | 2 | `@IgnoreIf(hibernate6/7.gorm.suite == true)` | Find-by-example not implemented for Hibernate 7 | +| `UpdateWithProxyPresentSpec` | 2 | `@IgnoreIf(hibernate7.gorm.suite == true)` | Proxy update behaviour differs in Hibernate 7 | +| `RLikeSpec` | 1 | `@IgnoreIf(hibernate7.gorm.suite == true)` | `rlike` not supported in HQL / H2 in Hibernate 7 mode | +| `DirtyCheckingAfterListenerSpec` | 1 | `@PendingFeatureIf(!hibernate5/6/mongodb)` | `test state change from listener update the object` — pending for Hibernate 7 | +| `DomainEventsSpec` | 1 | `@PendingFeature(reason='Was previously @Ignore')` | `Test bean autowiring` — pending across all suites | +| `WhereQueryConnectionRoutingSpec` | 5 | `@Requires(manager.supportsMultipleDataSources())` | Multiple datasource routing not supported in the TCK test manager | diff --git a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/Hibernate6OptimisticLockingSpec.groovy b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/Hibernate7OptimisticLockingSpec.groovy similarity index 98% rename from grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/Hibernate6OptimisticLockingSpec.groovy rename to grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/Hibernate7OptimisticLockingSpec.groovy index 21667042da..ddf14c37f3 100644 --- a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/Hibernate6OptimisticLockingSpec.groovy +++ b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/Hibernate7OptimisticLockingSpec.groovy @@ -26,7 +26,7 @@ import org.springframework.orm.hibernate5.HibernateOptimisticLockingFailureExcep /** * @author Burt Beckwith */ -class Hibernate6OptimisticLockingSpec extends HibernateGormDatastoreSpec { +class Hibernate7OptimisticLockingSpec extends HibernateGormDatastoreSpec { def setupSpec() { manager.addAllDomainClasses([OptLockVersioned, OptLockNotVersioned])
