-
Notifications
You must be signed in to change notification settings - Fork 55
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:
Line 190 in 82be5d5
SingularAttribute<?,?> idAttribute = entityType.getId(Object.class); |
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
Line 192 in 82be5d5
query.select(cb.count(root.get(idAttribute.getName()))); |
in
query.select(cb.count(root));
Metadata
Metadata
Assignees
Labels
No labels