apache / apache/grails-core

can't render domain instance version field with jacksonJson?

Open
#14,438 1 comment 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

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.