Skip to content

Commit

Permalink
Make sure the persistence module invalidates existing data when it ch…
Browse files Browse the repository at this point in the history
…anges
  • Loading branch information
umbernhard committed Jun 22, 2024
1 parent 650fb21 commit 6615258
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ public static synchronized void setProperties(final Properties the_properties) {
if (env.containsKey("HIBERNATE_URL")) {
system_properties.setProperty("hibernate.url", env.get("HIBERNATE_URL"));
}

// Properties have changed, we need to reinitialize our DB connectors
session_info.remove();
session_factory = null;
}

/**
Expand Down

0 comments on commit 6615258

Please sign in to comment.