I am confronting with an issue and it seems that many people encountered it and probably couldn\'t solve it.
I have the following MYSQL stored procedure. This is jus
Problem seems to be while mapping your results (resulting entity can't be typed).
Try changing:
@Procedure("ResourceType.getResourceTypes")
List getResourceTypes();
to
@Procedure("ResourceType.getResourceTypes")
Object[] getResourceTypes();
and remove the resultClasses in your NamedStoredProcedureQuery.
Hope that helps.