Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arey/hibernate-hydrate Nested List are not hydrated using @Embedded annotation #111

Open
pmop opened this issue Mar 20, 2018 · 1 comment
Labels
Java no operator This bug needs complex changes to be simulated. test A test was introduced on the commit that fixes (and usually closes) the issue. wrong annotation parsing Annotation processing code is faulty.

Comments

@pmop
Copy link
Member

pmop commented Mar 20, 2018

Issue: https://github.com/arey/hibernate-hydrate/issues/1
Commit: ``
Annotations: @Embedded @Embeddable
Test: `https://github.com/arey/hibernate-hydrate/blob/master/src/test/java/com/javaetmoi/core/persistence/hibernate/TestIssue1Fix.java` reproduces this issue (404).

We have a structure like this:
@Entity
public class Foo {

@Embedded
public Bar bar = new Bar();
}

@Embeddable
public class Bar {
@Onetomany
@Fetch(FetchMode.SELECT)
@Cascade(CascadeType.ALL)
@JoinColumn(name = "FOO_ID")
private List bizs = new ArrayList();
}

doing a : LazyLoadingUtil.deepHydrate(getSession().getSession(EntityMode.POJO), foo);

Doesn’t seem to populate the list of bizs...
Hi Izaak,

Thanks for reporting this first issue. I have reproduced this bug in a unit
test.
The problem comes from the @Embedded / @embeddable annotations. Current
implementation does not support them. I will work on a fix during the next
days.

Regards
@pmop pmop added bug test A test was introduced on the commit that fixes (and usually closes) the issue. wrong annotation parsing Annotation processing code is faulty. no operator This bug needs complex changes to be simulated. labels Mar 20, 2018
@pmop
Copy link
Member Author

pmop commented Mar 20, 2018

I can't propose an operator since this bug is too context specific and I believe that even applying "Add annotation" randomly wouldn't have a chance to reproduce a bug like this.

@pmop pmop removed the wontuse label Apr 9, 2018
@pmop pmop removed the bug label Jun 21, 2018
@pmop pmop added the Java label Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java no operator This bug needs complex changes to be simulated. test A test was introduced on the commit that fixes (and usually closes) the issue. wrong annotation parsing Annotation processing code is faulty.
Projects
None yet
Development

No branches or pull requests

1 participant