[ANY] Reformat code in hibernate

This commit is contained in:
sasha0552 2019-09-02 03:22:31 +06:00
parent 80cb28852f
commit 3199b66219
No known key found for this signature in database
GPG key ID: C319E1B0283CBEE1

View file

@ -32,8 +32,8 @@ public void init(LaunchServer server) {
.setProperty("hibernate.connection.username", username) .setProperty("hibernate.connection.username", username)
.setProperty("hibernate.connection.password", password) .setProperty("hibernate.connection.password", password)
.setProperty("hibernate.connection.pool_size", pool_size); .setProperty("hibernate.connection.pool_size", pool_size);
if(dialect != null) if(dialect != null)
cfg.setProperty("hibernate.dialect", dialect); cfg.setProperty("hibernate.dialect", dialect);
if(hibernateConfig != null) if(hibernateConfig != null)
cfg.configure(Paths.get(hibernateConfig).toFile()); cfg.configure(Paths.get(hibernateConfig).toFile());
userDAO = new HibernateUserDAOImpl(cfg.buildSessionFactory()); userDAO = new HibernateUserDAOImpl(cfg.buildSessionFactory());