7.1.x AutoTmestamp Enhancements + grails.importGrailsAnnotations GrailsExtension#15118
Merged
codeconsole merged 43 commits intoapache:7.1.xfrom Nov 12, 2025
Merged
Conversation
sbglasius
approved these changes
Oct 7, 2025
grails-gradle/plugins/src/main/groovy/org/grails/gradle/plugin/core/GrailsGradlePlugin.groovy
Show resolved
Hide resolved
…erties will only be marked dirty if other updates exist. This mimics the behavior in hibernate. Fixes apache#15120
Contributor
|
Per the weekly meeting, we'll merge this into 7.1. The vote to create that branch is going now - once 72 hrs have passed, we'll create the branch. |
Contributor
|
@codeconsole Can you update this PR now that you've made your mongo update date fixes? |
… is now handled in the EntityPersister
Contributor
Author
Done |
…reatedBy and updatedBy
jdaugherty
approved these changes
Nov 11, 2025
Contributor
jdaugherty
left a comment
There was a problem hiding this comment.
I still think it's a bad idea to being walking the dependency graph on every apply. I won't stop this merge since the default is to not include them though.
I think the only thing that needs to be done to merge this is to update the documentation to inform people of these features.
grails-datamapping-core/src/main/groovy/org/grails/datastore/gorm/timestamp/AuditorAware.java
Outdated
Show resolved
Hide resolved
...ls-datastore-core/src/main/groovy/org/grails/datastore/mapping/model/AuditMetadataUtils.java
Show resolved
Hide resolved
Contributor
Author
This was referenced Nov 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce
@CreatedDate,@LastModifiedDate,@CreatedBy, and@LastModifiedBysimilar to Spring DataExample App:
./gradlew :grails-test-examples-scaffolding:bootRunIntroduce grails.importGrailsCommonAnnotations to automatically import common grails annotations and jakarta.validation.constraints.*
build.gradle
allows the following with no imports