I wanted to understand the difference between and in Hybris for Model creation. How do they function internally?
0
votes
1 Answers
0
votes
<model generate="false"/>
can be used in some contexts:
1) In <itemtype>
to exclude the type from being created (including all subtypes) and can be used like in this example:
<itemtype ....>
<model generate="false"/>
</itemtype>
2) In <attribute>
context to exclude the attribute from being created. The result is that neither the private field nor getter and setter methods are generated!
<attribute ...>
<model generate="false"/>
</attribute>
I didn't found any utility yet for this case.
The <itemtype generate="false/true"/>
is used to specify to generate the Java class files or not (for getters/setters).
You can read here more information about <model/>
tag (create custom getters/setters/constructors for an itemtype)