Models

In MVC the Models are used to handle most of your data retrieval. xTend has simple Model support for you to use.

Creating a Model

To create a model you can either choose to create a file manually or use the workbench. If you use the workbench you'll just have to call the new:model command and it will create it for you with some default model code. If not you'll have create the file and add the code yourself.

The default Model class allows for database interaction using Idiorm (in conjunction Paris), you can read more about these here https://idiorm.readthedocs.io and here https://paris.readthedocs.io