Skip to content

Commit

Permalink
HSEARCH-4674 Make sure that correct *.properties file is read when co…
Browse files Browse the repository at this point in the history
…nfiguring the session
  • Loading branch information
marko-bekhta committed Dec 9, 2022
1 parent 6f4e8cf commit ea594e1
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void triggerValidationFailure() {
}

private StandardServiceRegistryBuilder applyConnectionProperties(StandardServiceRegistryBuilder registryBuilder) {
registryBuilder.loadProperties( "actual-hibernate.properties" );
// DB properties:
Map<String, Object> db = new HashMap<>();
DatabaseContainer.configuration().add( db );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public void triggerValidationFailure() {
}

private StandardServiceRegistryBuilder applyConnectionProperties(StandardServiceRegistryBuilder registryBuilder) {
registryBuilder.loadProperties( "actual-hibernate.properties" );
// DB properties:
Map<String, Object> db = new HashMap<>();
DatabaseContainer.configuration().add( db );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ private SessionFactory createSessionFactory() {
}

private StandardServiceRegistryBuilder applyConnectionProperties(StandardServiceRegistryBuilder registryBuilder) {
registryBuilder.loadProperties( "actual-hibernate.properties" );
// DB properties:
Map<String, Object> db = new HashMap<>();
DatabaseContainer.configuration().add( db );
Expand Down

0 comments on commit ea594e1

Please sign in to comment.