Model Transform - Java


Catalog:


Introduce

Jmr can read the java class to transform the model.

In the development, some people like the first design database, some people like the first design class, Jmr two modes can be used.


New Model Group

First, open the Jmr file, switch the Model page, and click the new button on the menu. Or in the Model List right key, New Group.

Enter a group name, such as: model.

The right side of the page configuration, the current support from the Database, Java Class, Xml File transform model.


Transform Java Class

Select any model group, in the detail page, select "Java class", Browse.

Select a Java class Book.java

This class has 4 fields: id, name, type, registTime and their get/set methods.

Final click Transform.

Transform model.

Using the Init Scheme to transform model

After transform model, according to business needs, It is possible to modify the model.

For example, according to business needs, we need to modify or add the contents of the model.

The difference between the database, Java class already has name, type, fullType.

We can set the init scheme

When transform to model, select the init scheme.

How to use of the init scheme, please refer to the following