micronaut-projects / micronaut-projects/micronaut-data

Compile time hibernate proxies not work with MappedSuperclass

Open
#1,328 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: awaiting feedback
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.