Command line mode


For bulk use, the description is implemented via the interface, and the generation of ORM classes and the creation of audit triggers are performed during project assembly and when the database structure is changed in command line mode

Use cases

- create classes for a specific table, the table may not be described in the project;
- create classes for all tables described in the project;
- redefinition of custom classes for a particular installation of the assembled base-project;
- create an audit trigger and history view is used when installing the assembled project.

Examples of launch
set database_url=jdbc:postgresql://
set database_user=postgres
set database_password=

set classpath=..\..\jarovit-framework-core.jar;..\..\jdbc\

rem View help
rem "%JAVA_HOME%\bin\java" -cp %classpath% org.jarovit.util.LaunchUtil

rem Generate classes for one table, describing of table in the project optionally 
rem "%JAVA_HOME%\bin\java" -cp %classpath% org.jarovit.util.LaunchUtil --action orm-generate-classes --database-url %database_url% --user %database_user% --password %database_password% --project-file SampleOrmElementary.jvx --schema test --table persons

rem Generate classes for all described tables of project
rem "%JAVA_HOME%\bin\java" -cp %classpath% org.jarovit.util.LaunchUtil --action orm-generate-classes --database-url %database_url% --user %database_user% --password %database_password% --project-file SampleOrmElementary.jvx

rem Generate audit trigger and history view
rem "%JAVA_HOME%\bin\java" -cp %classpath% org.jarovit.util.LaunchUtil --action orm-generate-classes --database-url %database_url% --user %database_user% --password %database_password% --project-file SampleOrmHistory.jvx