Scout jOOQ - Eclipse Scout Template Application using jOOQ for Persistence
The archetype is currently not deployed on any repository. To install it locally change into directory archetype
and build it.
mvn clean install
Once it is in your local catalog you can generate a project from it. Navigate to the directory where you want to create the new project and execute:
mvn archetype:generate \
-DarchetypeGroupId=org.eclipse.scout.archetypes \
-DarchetypeArtifactId=basic-application-template \
-Dinteractive=true \
-DarchetypeCatalog=local
The following properties are used in the archetype:
- artefactId
- groupId
- version
- package
- appName
- javaVersion
In interactive mode, maven will ask for the values, otherwise you need to set them using -D
:
mvn archetype:generate \
-DarchetypeGroupId=org.eclipse.scout.archetypes \
-DarchetypeArtifactId=basic-application-template \
-DappName="My Test App" \
-DgroupId=com.example \
-DartifactId=com.example.testapp \
-Dpackage=com.example.testapp \
-Dversion=1.0.0-SNAPSHOT \
-DarchetypeCatalog=local
Import the generated project into eclipse, launch configurations should be available.
This code currently only works with Java 8.
- Update the field
DEFAULT_HOST
in classServerProperties
to match the address of your database host. - Update
config.properties
files need to be updated with proper security keys. These can be generated with the appropriate scout utilities
There is a derby DB configured that will run in-memory. This is not intended for production, but so the application is immediately executable without any further set up.
There are several tasks to be performed:
- Change the JOOQ Dialect and related items in the database project.
- Import an appropriate driver in the database project pom.
- Change config.properties files to use the correct jdbc string and driver name
- Change the connection information in
GeneratorApplication
docker run -it --name scoutJooqPg -e POSTGRES_PASSWORD=securePassw0rd -d postgres
- Add the table in the
database
module as aIGeneratorTable
or inherit one of it's implementors. - Run
GeneratorApplication
to generate the Jooq Classses - Implement the appropriate service in the
server
module