Commit cb725b09 authored by pudi9346's avatar pudi9346

Initialisation of Hibernate before starting GUI (main - startGUI.java

parent c862580d
Pipeline #2867 skipped
...@@ -246,6 +246,15 @@ public class DBSearch { ...@@ -246,6 +246,15 @@ public class DBSearch {
return "testReturn"; return "testReturn";
} }
/*
* Initializes hibernate Session (~1.4 seconds)‚
*/
public static void initDB(){
Session session = HibernateUtil.getSession();
}
/** /**
* Indizierung * Indizierung
......
...@@ -53,10 +53,10 @@ public class startGUI extends Application { ...@@ -53,10 +53,10 @@ public class startGUI extends Application {
* **/ * **/
public static void main(String[] args) { public static void main(String[] args) {
DBSearch.initDB(); // Initialize Hibernate
launch(); // Comment to turn off Frontend launch(); // Comment to turn off Frontend
/* BackendDBG: /* BackendDBG:
MedReportSplitter reportSplit = null; MedReportSplitter reportSplit = null;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment