Closed
Description
I've an entity bean with @IdClass annotation (multiple id columns).
This kind of annotation is not well supported by this framework and every query will fail due to:
You should change that, to something like this:
if(entityType.hasSingleIdAttribute()){
SingularAttribute<?,?> idAttribute = entityType.getId(Object.class);
...
}else{
...
}
Alternatively you can delete that line and change query statement
in
query.select(cb.count(root));
Metadata
Metadata
Assignees
Labels
No labels