You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to fetch entity class by id (single table inheritence), but query: from(DOCUMENT).select(JPAExpressions.type(DOCUMENT)).where(DOCUMENT.id.eq(id)).fetchOne();
throws java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.String
Debugging AbstractJPAQuery#getSingleResult shows that I get java.lang.Class but fetchOne casts it to string since JPAExpressions.type(DOCUMENT) returns StringExpression.
QueryDSL-JPA 4.1.4
Looks like the root cause can be the same for #1747
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I am trying to fetch entity class by id (single table inheritence), but query:
from(DOCUMENT).select(JPAExpressions.type(DOCUMENT)).where(DOCUMENT.id.eq(id)).fetchOne();
throws java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.String
Debugging AbstractJPAQuery#getSingleResult shows that I get java.lang.Class but fetchOne casts it to string since JPAExpressions.type(DOCUMENT) returns StringExpression.
QueryDSL-JPA 4.1.4
Looks like the root cause can be the same for #1747
The text was updated successfully, but these errors were encountered: