I have a Spring Boot/Hibernate environment. For an additional native SQL query besides the existing model I need one of Hibernates SQL connections from the pool. Is there a way to get a connection from the existing pool via EntityManager, Session or another class? I don't want to create a second pool or initialize a separate connection (needs a lot of resources and time and is going to be done several times).
SpringBoot-Version is 1.4.7
Hibernate JPA is 2.1
I am already searching the whole day and can't find a solution.
Thanks and bye