Create a domain model from your database
Many databases exist without any domain model describing the database. Now it’s possible to use g9 to build domain models based on your databases. The models are expressed in Ecore, Xcore or as Java classes.
Modeling with Java source code as the Model Source
In the previous version we introduced the possibility to create domain models from your written java source. An internal domain model in g9 can be distilled from java source code by specifying Java Code as modeling tool when creating a new g9 UI modeling Project. New in this version is that you can exclude elements not g9 annotated. The g9 Java domain generator has the possibility to generate g9 annotations.
Preview new dialogs
In the “New Dialog wizard” a checkbox is added giving the possibility to see a preview of the design based on the parameters given in the wizard. The object selection and dialog template you choose decide the design. You can easily change the dialog template and see the result immediately. You can experiment like this before the final decision is done.
Separation of generated and manually maintained code
Separation of generated and manually maintained code has been possibel, but now can you separate the code in different source trees. One given by “Target Directory”, which is the target for generated code and one given by “Source Directory”, which is the tree for your own written code. A file moved to “Source Directory” will not be regenerated.
Understand the g9 build consept
When you have defined all your objects with the right build configuration, you can use Eclipse incremental builder. Set the “Participate in automatic Build” checkbox and set “Build Automatically” on the Project menu to activate automatic builds. With these settings the project will build incrementally triggered by file changes. Read more in the g9 documentation, “User Guide > Reference > Configuring Builds”.
New Xcore generator
Xcore describes Ecore models as text. Xcore is modeling for programmers. With g9 you can generate an Xcore version of your domain model. See more information about Xcore on http://wiki.eclipse.org/Xcore.
The Domain generator talks JPA
New possibilities in the Java domain generator: Beside generation of your java classes, you can now generate Java Persistence API (JPA) annotations.
Here is g9:
- Use Esitos Eclipse updatesite at http://www.esito.no/updatesite/g9
- Download from http://download.esito.no/downloads/tools/g9-2.4.0.zip
- We recommend “Eclipse for Java and DSL Developers” Mars.2
- Complete Release Notes 2.4.0