dao(dao.java.jet) - Dao interface
Introduce
Generate the dao interface.
Related knowledge:
Task
Model
Tag
Task And Model

- Model Group: shop
- Model: book
The model group of the current task is shop,
which contain a Java entity model book,
and the relation value of book is one;
More about the model structure of this demo, please click: Demo model structure
There are 2 ways to select the model:
- Select Model Group(Such as shop): <entity> tag need select the relation. This way is used in template, which require multiple models, such as many-to-one, many-to-many.

- Select Model(Such as book)(This demo): <entity> tag no need to select the relation. This way is used in template, which require only one model. Of course, you can also select relation together.

-
Template: dao.java.jet
-
Name: I${Class}Dao
We have created the following properties for this model:
Class: A head uppercase property,
which can be used as the class name or a part that need head uppercase.
It's value is "Book".
class: A lowercase property,
which can be used as a part that need lowercase.
It's value is "book".
menu: The name of the menu bar, and it's value is "Book".

Generate file: I${Class}Dao

- Ext: The extension is java
Template content

- Use java:package tag to automatically get the current package path.
- Use java:class tag to get the class name. The class name is the file name of the task: the value of I${Class}Dao is IBookDao.
Result
