| Main |
This class creates a EclipseLink EntityManagerFactory,
and executes the DDL generator with the command set in the properties:
eclipselink.ddl-generation.output-mode
eclipselink.application-location
Current command-line arguments:
[-pu puName] - persistence unit name
[-p propertiesFilePath] - properties for EclipseLink EntityManager
[-debug] - debug mode
[-dynamic] - use the org.eclipse.persistence.dynamic.DynamicClassLoader
Example of a properties file:
eclipselink.jdbc.bind-parameters=false
eclipselink.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver
eclipselink.jdbc.url=jdbc\:derby\:c\:/derbydb/testdb;create\=true
eclipselink.jdbc.user=tran
eclipselink.jdbc.password=
eclipselink.logging.level=FINEST
eclipselink.logging.timestamp=false
eclipselink.logging.thread=false
eclipselink.logging.session=false
eclipselink.logging.exceptions=true
eclipselink.orm.throw.exceptions=true
eclipselink.ddl-generation.output-mode=database
eclipselink.ddl-generation=drop-and-create-tables
eclipselink.application-location=c\:/_Projects_/ExampleDDL |