Здесь application.properties
Код: Выделить всё
#DB2 dev database config
spring.datasource.url=jdbc:db2://server_nameXXX
spring.datasource.username=my_username
spring.datasource.password=my_password
Код: Выделить всё
EntityManager entityManager;
@Autowired
public SalesCloseEstimateDaoImpl(EntityManager entityManager){
this.entityManager = entityManager;
}
-----------------
StoredProcedureQuery procedureQuery = entityManager.createStoredProcedureQuery(StoredProcedureName);
Подробнее здесь: https://stackoverflow.com/questions/658 ... ty-classes