Skip to content

Configuration

Location of generated Files

In a Virtual Developer Cloud Connector, every of the following groups of files (so-called virtual projects) can be mapped to a separate Eclipse project or to a directory. By providing more than one virtual project you have the freedom to organize the generated code in the way you want. You might for instance want to put the static metamodel in a separate jar-file.

Groups of Files (Virtual Projects) Included File Types
JPA Classes entity classes, embeddable classes, DAOs, entity lifecycle listeners, thread local session data class, data generator class, DAO unit test classes, unit test parent class, entity unit tests, test data generator, test data generator unit test
JPA Resources orm.xml, persistence.xml
JPA Test Resources dictionary zip file
metamodel static metamodel classes

Generator Options

for JPA Classes

Option Description Value Range Default Value
target.uri.prefix path for Java source code a valid relative path src/main/java
target.uri.prefix.for.tests path for Java source code for testing a valid relative path src/test/java
arquillian-tests generates unit test code that uses the Arquillian framework true or false true
dao-pattern controls whether the DAO methods are static methods or instance methods static or object static
default-namespace nominates the package to be used in case the package cannot be taken from the model a valid Java package name
generate-daos DAOs are only generated when this option is set to true trueor false true
generate-lifecycle-listeners lifecycle listeners are only generated when this option is set to true trueor false true
persistence-provider by setting this option you tell the generator for which persistence provider the code should be optimized (generated code might include provider specific annotations) Hibernate, EclipseLink, OpenJPA (all case insensitive) Hibernate
single‑persistence‑unit‑name if this option is set, all modeled entities will become part of one single persistence unit with the given name (otherwise persistence.xml will contain one persistence unit per modeled persistence module) any string without whitespaces persistenceunit

for JPA Resources

Option Description Value Range Default Value
target.uri.prefix path for resource files a valid relative path src/main/resources
target.uri.prefix.for.tests path for resource files for testing a valid relative path src/test/resources

for JPA Test Resources

Option Description Value Range Default Value
target.uri.prefix.for.tests path for resource files for testing a valid relative path src/test/resources

for metamodel

Option Description Value Range Default Value
target.uri.prefix path for Java source code a valid relative path src/main/java