apache / apache/grails-core

cascadeValidate global option does not work on Grails 4.0.10

Open
#14,426 0 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-data-hibernate5
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

The option to set the cascadeValidate behavior for grails.gorm.default.mapping does not appear to work.

```
grails.gorm.default.mapping = {
'*'(cascadeValidate: 'dirty')
}
```

Grails: 4.0.10
Gorm Hibernate: 7.0.4

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with Grails 4.0.10 and GORM Hibernate 7.0.4 using the grails.gorm.default.mapping configuration shown in the report. Trace how the global cascadeValidate setting is applied and verify that cascadeValidate: 'dirty' affects validation as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.