Example #1
0
 public static Database connect(SessionFactory sessionFactory) {
   Database database = new Database(sessionFactory);
   database.openConnection();
   return database;
 }
Example #2
0
 public void start() {
   database.openConnection();
   database.clean();
 }