can't render domain instance version field with jacksonJson?
- Dominant language
- Groovy
- Stars
- 2.9k
- Forks
- 975
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 92
Description
we found that org.grails.compiler.gorm.GormEntityTransformation would forced to add @JsonIgnoreProperties(['version']) while ASTTransformation CompilePhase domain class in grails-data-mapping package.
Why it‘s so designed? How to bypass this limitation?How to output domain instance version filed with jsonformat?
Contributor guide
Research direction
Start with org.grails.compiler.gorm.GormEntityTransformation in the grails-data-mapping package and inspect the compile-phase handling that adds @JsonIgnoreProperties(['version']). Reproduce the domain instance serialization with jacksonJson, then determine what behavior is expected for the version field; done means the limitation is resolved or a supported bypass is documented and tested.
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
- 25/100