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.