mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-19 14:33:04 +03:00
[FIX] Опциональный диалект
This commit is contained in:
parent
345865c92a
commit
80cb28852f
1 changed files with 3 additions and 2 deletions
|
@ -31,8 +31,9 @@ public void init(LaunchServer server) {
|
|||
.setProperty("hibernate.connection.url", url)
|
||||
.setProperty("hibernate.connection.username", username)
|
||||
.setProperty("hibernate.connection.password", password)
|
||||
.setProperty("hibernate.connection.pool_size", pool_size)
|
||||
.setProperty("hibernate.dialect", dialect);
|
||||
.setProperty("hibernate.connection.pool_size", pool_size);
|
||||
if(dialect != null)
|
||||
cfg.setProperty("hibernate.dialect", dialect);
|
||||
if(hibernateConfig != null)
|
||||
cfg.configure(Paths.get(hibernateConfig).toFile());
|
||||
userDAO = new HibernateUserDAOImpl(cfg.buildSessionFactory());
|
||||
|
|
Loading…
Reference in a new issue