<entity>
Set the new variable to a entity model.
Only one model can not specify relation, and multiple models are specified by relation.
var(required) Set the new variable to a entity model
name(optional, deprecated) Name of the entity model (specified by name) Deprecated! suggested specified by relation\n
relation(optional) Relation of the entity model (specified by relation)
There are 3 types of models that come from database, java class, and xml file.
<entity> tag can get the model from the database and java class, <xml> tag can get the model from the xml file.
Entity has 2 usages:
Here we get the model db and java through relation to get their properties and fields.
Result:
Tip: you can get the model structure when you enter.
You can get more model message when mouse above.