micronaut-projects / micronaut-projects/micronaut-data
Compile time hibernate proxies not work with MappedSuperclass
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 482
- Forks
- 229
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 32
Description
### Expected Behavior
Return the values defined in the superclass.
### Actual Behaviour
The proxy return null in every properties defined in superclass
### Steps To Reproduce
Checkout https://github.com/henriquelsmti/micronaut-data-generate-proxy-bug
Run LunchSpec
The test will failed in line 44
### Environment Information
_No response_
### Example Application
https://github.com/henriquelsmti/micronaut-data-generate-proxy-bug
### Version
2.5.13, 3.3.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked example application and run LunchSpec, checking the failure at line 44. Trace the compile-time Hibernate proxy handling for properties declared in a MappedSuperclass. Done means the proxy returns the superclass-defined property values instead of null, with the reproduction test passing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100