I will explain how to register and delete models using WagbyDesigner.
Select "Model" from the WagbyDesigner menu.There are two tabs "user" and "system", but the model to be newly developed is stored in the "user" tab.
As shown in Figure 1, select "New model" from the gear icon.As shown in Figure 2, the definition screen for the new model opens.
"Model name" is the name displayed on the screen (and menu).
"Model ID" is used as the database table name and the identifier in the generated source code.
You can not use Japanese (hiragana, katakana, Chinese numerals) for model ID.Please use alphanumeric characters.
Changing the model name and model IDImmediately reflected in the repositoryIt will be.At the timing of the build, the source code is regenerated using the changed name.
Display the model list from the "Model" menu.Check the model you want to delete.
Select "Delete" from the gear icon.
A confirmation dialog will be displayed. Click the "OK" button.
The model has been deleted.
You can specify build target models individually.Please specify a checkbox in the Build column.All models are targeted for build in the standard.
A table (for relational database) corresponding to the model is generated.
More precisely, DDL (create table, drop table) for the database is automatically generated for the model definition.You can use this DDL to create and delete tables on the database.[More ...]
If there are other models referring to this model, a warning dialog will be displayed before the change.When OK is pressed, the model ID after substitution is substituted for all referenced models.(The items in the formula are also the same.)
If there are other models referring to this model, a warning dialog will be displayed before deleting.If you refer to this model in the calculation formula (item in), it is included in the warning target.
If you press OK, the model will be deleted, but for other models indicated as affected, developers should manually correct them appropriately.
The model included in the "System" tab is used by Wagby's management function.This is called "system model".On the other hand, the one created by the developer is called "user model".
The system model has the following restrictions.
The following models can expand model items.
|Model name||Model ID||Use|
|group||jgroup||Used for group authority management.It is linked with account (juser).|
|Notice||jnews||A model that can notify users.|
Please use the model other than the one described here as it is (without changing it). In Wagby's version upgrade, the latest model is applied when applying the migration tool (models belonging to "system" other than the model above).
There is no theoretical limit.
By increasing the memory used by WagbyDesigner, you can build applications that contain many models.
Moreover, by increasing the memory used by the application built by Wagby, it is possible to operate a large-scale application.