how to get alias name using spring-data-jpa in Spring boot? I want alias name for stored procedure
StoredProcedureQuery storedProcedure = entitymanager.createStoredProcedureQuery(Proc);
if (params != null && params.length > 0) { // If no parameters supplied then no need to add it
int paramCount = 0;
for (String param : params) {
paramCount++;
storedProcedure.registerStoredProcedureParameter(paramCount, String.class, ParameterMode.IN);
storedProcedure.setParameter(paramCount, param);
// System.out.println("param" +param);
}
}
List<Object[]> storedProcedureResults = storedProcedure.getResultList();
this will return me only result but i also want column name which i have given in stored procedure