Mod4j 1.2.0 Upgrade Notes

The following upgrade steps are needed if you want to upgrade your project from Mod4j 1.1.0 to Mod4j 1.2.0 .

Installation of Mod4j Eclipse plug-in 1.2.0

Before you install a new Mod4j Eclipse plug-in into Eclipse make sure you un-install older versions of the plug-in.

Here you can find download and install instructions, that will guide you to install Mod4j, by making use of the Mod4j updatesite.

Changes in Maven configuration

With this release Mod4j has improved the Maven configuration for your application. Follow the next steps to adjust the Maven configuration in the right way.

All changes apply to the parent-pom of your application. The parent-pom (pom.xml) is located at the root of your project (if you didn't change its location).

  1. Adjust mod4j.version property to 1.2.0 :

Model syntax changes

The DataContract DSL model syntax has been improved.

  • For all datacontract models, usage of the list keyword must be converted. The list keyword is removed from the syntax.
    Lists are now automatically detected when a dto-type is used as a reference in another dto. See next example:

The Service DSL model syntax has been improved.

  • In the datacontract models the ListDto has been removed. As a consequence, a ListDto cannot be used in the service models either. For aal of the standard services (listall, find, and reference methods) it is autmatically deduced when a list is needed. For custom service methods, one can insert the list keyword before a Dto for both the in and/or out parameters, to specify that the custom method takes a list of Dtos as parameter. See next example: