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