如何在Spring启动时使用spring-data-jpa获取别名? 我想要存储过程的别名
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();
这将只返回结果,但我还想要我在存储过程中给出的列名