yandex-qatools / postgresql-embedded

Embedded PostgreSQL Server
Other
493 stars 90 forks source link

How to use lib with hibernate #117

Open acmesquita opened 6 years ago

acmesquita commented 6 years ago

Hello,

I using this lib and I don't know how setting with hibernate, you can help me with this configuration?

poxu commented 6 years ago

Well, first you should start EmbeddedPostgres with specified login, password and port . And then you just give those to Hibernate, like you always do. Just make sure EmbeddedPostgres starts before Hibernate does. I use Spring for that.