Qute does not invoke getters generated by Hibernate Panache #14918
Labels
area/hibernate-orm
Hibernate ORM
area/panache
area/persistence
OBSOLETE, DO NOT USE
area/qute
The template engine
kind/bug
Something isn't working
Milestone
Describe the bug
Because Qute accesses properties using the public field access, lazy loading is never triggered when Qute templates are rendered.
Expected behavior
When iterating a lazy (default)
@OneToMany
relationship, the entities should be queried from the DB (implemented in Panache when the getter method is invoked).Actual behavior
Lazy collections in
@OneToMany
associations are never triggeredTo Reproduce
Run the following project:
code-with-quarkus.zip
And hit http://localhost:8080/fruits. You should see
Apple
.Go to the
Fruit
entity an uncomment the getter + private field and hit the URL again. You'll seeApple
and two wormsThe text was updated successfully, but these errors were encountered: