package pl.lodz.pl.ftims.supermarket.frontend.standalone.start;


import pl.lodz.pl.ftims.supermarket.frontend.standalone.storage.core.Init;
import backend.core.SessionFactoryManager;

public class Main {

	public static void main(String[] args) {
		initDatabase();
		
		
	
	}

	private static void initDatabase() {
		SessionFactoryManager instance = SessionFactoryManager.INSTANCE;
		instance.getSessionFactory();
	}
	
	private static void initView(){
		//init view when done
	}
	
	private static void initStorageManagement(){
		pl.lodz.pl.ftims.supermarket.frontend.standalone.storage.core.Init init = new Init();
		init.init();
	}
	
}

@@ -59,16 +59,68 @@
 tart;%0A%0A%0A
+import java.util.ArrayList;%0Aimport java.util.List;%0A%0A
 import p
@@ -163,32 +163,24 @@
 .standalone.
-storage.
 core.Init;%0Ai
@@ -176,16 +176,24 @@
 ore.Init
+alizable
 ;%0Aimport
@@ -314,16 +314,109 @@
 e();%0A%09%09%0A
+%09%09List%3CInitalizable%3E modules = new ArrayList%3C%3E();%0A%09%09modules.add(getInitStorageManagement());%0A
 %09%09%0A%09%0A%09%7D%0A
@@ -636,22 +636,33 @@
  static 
-void i
+Initalizable getI
 nitStora
@@ -679,16 +679,27 @@
 nt()%7B%0A%09%09
+return new 
 pl.lodz.
@@ -760,39 +760,8 @@
 Init
- init = new Init();%0A%09%09init.init
 ();%0A

Update start module