Skip to content

Generator Config

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.

Groups of Files (Virtual Projects) Included File Types
Basic Java Classes Enumeration and Technical Exceptions
JAXB Classes for JAX-RS The beans for the Rest API
EJB Classes (one for each Entity) Business Exceptions
Bean Bucket Used to generate test data
JAX-RS Classes (Resources, Application, Jackson-Configuration) The JAX-RS stuff

Generator Options

Node Option Description Value Range Default Value
OpenApi to Function Java-UsePrimitiveWrapper Use a wrapper for primitive types true or false false
OpenApi to Function namespace Default namespace for function modules string your.company.api
Persistence to Function entity-filter Control for which entities functions are going to be generated ALL, NONE or SELECTED ALL
Persistence to Function function-param-type entity or complexType complexType
Persistence to Function namespace-postfix A postfix that is added to the package name of implicitely created complex types string .function
Function to EJB convert-business-exceptions EJB and JAX-RS generation take care of this instead true or false false
Function to EJB disable-ejbs disable creation of EJB model elements true or false true
Function to EJB generate-json-annotations true or false false
Function to EJB indirect-conversion true or false false
Function to EJB use-object-type-for-fieldless-type true or false true
Function to EJB indirect-conversion true or false false
Function to EJB/JAX generate-swagger-annotations true or false false
Function to EJB/JAX enable-rule-number-of-fields true or false false
Function to JAX application-path The name of the application path for the JAX-RS application string apppath
Function to JAX application-version The version of the REST API provided by the JAX-RS application string v1
Function to JAX binding-provider The name of the binding provider moxy, jackson, gson, yasson, or johnzon jackson
Function to JAX container The servlet or applicationserver for which the JAX-RS code is generated servlet, applicationserver, glassfish, glassfish_5_1, wildfly, wildfly_15_0, etc. glassfish_4_1
Function to JAX default-namespace Default namespace string your.company.api
Function to JAX generate-google-client-api-annotations Generate google client API annotations true or false false
Function to JAX generate-json-facades Generate JSON facade classes true or false false
Function to JAX support-content-negotiation-by-type Generate additional methods to the resource for content negotiation by type true or false false
all generation groups target.uri.prefix path for Java source code a valid relative path src/main/java
all generation groups target.uri.prefix.for.tests path for Java test classes a valid relative path src/test/java