I’ve got an application doing database migrations using Flyway, and using Hibernate for the ORM. I’d like to configure Hibernate to use the same datasource that flyway did in order to conserve resources - that is, I’d like to inject the datasource instance somehow. Is this possible?
Yeah, that is possible. See the documentation for more details: Hibernate ORM 5.4.30.Final User Guide
This worked perfectly, thank you!