Exemplo n.º 1
0
 static Session getDafoeSession() {
   initDataSource();
   // VT: load a dynamic session per database
   return SessionFactoryImpl.getCurrentDynamicSession();
 }
Exemplo n.º 2
0
  public static void initDataSource() {
    IDataSource con =
        new DataSource("jdbc:postgresql://localhost:5432/DAFOE2", "postgres", "postgres");

    SessionFactoryImpl.openDynamicSession(con);
  }