Closed omasseau closed 2 days ago
I will take a look. I know it works with normal JPA but PF core doesn't test with Panache as it's a quarkus only library.
You can also manually define the field, converter or getter for the id. Check PF docs as workaround
Also its propably a panache bug, i would say it must work
This does feel like a Panache bug. Let me investigate.
PanacheEntity has a id So either panache or hibernate bug
@omasseau i opened a Quarkus ticket with reproducer: https://github.com/quarkusio/quarkus/issues/41389
@tandraschko looks like a PF issue. Here is what the Panache guy says
I checked it out, and it appears the javadoc of
getDeclaredId
is wrong, because it follows the same principles as Java's reflection, where declared means there will be no super-type lookup: it will be limited to the entity type passed as parameter, and not look for its mapped superclasses. You should usegetId
to lookup IDs that can be defined in supertypes. I just checked it and that works.
PrimeFaces PR submitted: https://github.com/primefaces/primefaces/pull/12179
3.14.2 is in Maven Central which fixes this issue.
Hello,
It seems the JPALazyDataModel is not working for an entity that extends PanacheEntity. The id attribute (which is declared in the PanacheEntity class) cannot be found .
Entity :
View code :
xhtml :
When trying to display the xhtml file I get this error :
Quarkus version : 3.11.0 Primefaces extension version : 3.14.1