org.eclipse.jpt.jpa.eclipselink.core.ddlgen
Class Main
java.lang.Object
org.eclipse.jpt.jpa.eclipselink.core.ddlgen.Main
public class Main
- extends Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityManagerFactory
protected EntityManagerFactory entityManagerFactory
main
public static void main(String[] args)
execute
protected void execute(String[] args)
logMessage
public void logMessage(Level level,
String message)
Copyright (c) 2012 Oracle. All rights reserved.