I assume
EntityManager.createStoredProcedureQuery(String procedureName, Class... resultClasses)
Create an instance of StoredProcedureQuery for executing a stored procedure in the database.
Just try passing the resultClasses to you entities.
The resultClass arguments must be specified in the order in which the result sets will be returned by the stored procedure invocation.
Parameters: procedureName - name of the stored procedure in the database resultClasses - classes to which the result sets produced by the stored procedure are to be mapped