package org.minimalj.backend.sql;

import javax.sql.DataSource;

import org.minimalj.application.Application;

public class TableCreator {

	public static void main(String[] args) throws Exception {
		Application.initApplication(args);
		Application application = Application.getInstance();
		
		String database = System.getProperty("MjBackendDatabase");
		String user= System.getProperty("MjBackendDataBaseUser", "APP");
		String password = System.getProperty("MjBackendDataBasePassword", "APP");
		
		DataSource dataSource = SqlPersistence.mariaDbDataSource(database, user, password);
		new SqlPersistence(dataSource, SqlPersistence.CREATE_TABLES, application.getEntityClasses());
	}

}

@@ -325,31 +325,27 @@
 Property(%22Mj
-Backend
+Sql
 Database%22);%0A
@@ -357,16 +357,17 @@
 ing user
+ 
 = System
@@ -382,28 +382,24 @@
 erty(%22Mj
-Backend
+Sql
 Data
-B
+b
 aseUser%22
@@ -454,20 +454,16 @@
 (%22Mj
-Backend
+Sql
 Data
-B
+b
 aseP

use same system properties as persistence