PanacheRepositoryBase.findByIds() returns a list of <T extends PanacheEntityBase> #54633
kawoolutions
started this conversation in
Community
Replies: 2 comments
|
Seems like a bug to me, can you open an issue? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello all.
I am fairly new to Quarkus and I have a question:
Why does
https://github.com/quarkusio/quarkus/blob/main/extensions/panache/hibernate-orm-panache/runtime/src/main/java/io/quarkus/hibernate/orm/panache/PanacheRepositoryBase.java
method
findByIds(List<?> ids)return a list of<T extends PanacheEntityBase>and not<Entity>like all the other methods?As far as I understand the classes,
PanacheEntityBaseis for the Active Record Pattern andPanacheRepositoryBaseis for the repository pattern. This would mean to mix the repository pattern and active record pattern inPanacheRepositoryBaseand force me to extend an entity fromPanacheEntityBaseonly to use thefindByIds(...)method.Is this unintended? Maybe a bug?
Thanks
Karsten
All reactions