W
W
Wan-Derer2021-05-27 18:37:26
Java
Wan-Derer, 2021-05-27 18:37:26

How to pull the Hibernate config?

I am making a database access library that will crawl into the database and issue Java objects in the form I need. I compile the library into JAR, then import it into the project and use it.
I'm doing it on Hibernate. Accordingly, there is a hibernate.cfg.xml file, in which links, passwords, etc. Naturally, I want this file to be not inside the JAR, but separately.
Question: how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2021-05-27
Hasanly @azerphoenix

Here, here is the answer to your question - https://stackoverflow.com/questions/27508327/desig...
In short, you can put it in an external configuration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question