79657245

Date: 2025-06-07 19:02:48
Score: 2.5
Natty:
Report link

In the official documentation, I have read that if you extend PanacheEntityBase instead of PanacheEntity, you can not use default methods, which you do correctly.

I have two answers for your question:

one can you please add type parameter to your PanacheEntityBase like.

public class PersonRepository implements PanacheRepositoryBase<Person,Integer>

Here is the source:

https://quarkus.io/guides/hibernate-orm-panache

If it does not work, please try parameter binding:

public static Person findById(Long id) {
    return find("id = ?1", id).firstResult();
}

Please let me know, so I can edit the answer with correct version.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Murat K.