Reputation: 145
And generate="true"
etc.
On Type System etc.
Upvotes: 3
Views: 6819
Reputation: 533
autocreate=true at the item type level - It hints hybris to create a new database entry for this type at initialization/update process If we set it to false,build will fail. We should set it to true for the first definition of item type.
generate=true at the item type level - It hints hybris to generate a new jalo class for this type during build time. If we set it to false,then jalo class will not be generated however model class will always be generated. We should set it to true for the first definition of item type.
Upvotes: 3
Reputation: 5420
Autocreate -
autocreate is true, which lets the hybris Commerce Suite to create a new database entry for this type at initialization/update process. Setting the autocreate modifier to false causes a build failure. The first definition of a type has to enable this flag.
Generate -
Jalo Layer: Setting the generate modifier to true results in Java class files being generated for this type Additional Details. Setting the generate modifier to false results in no Java class file being generated for this type. Having no Java class file available means that you are not able to implement a custom business logic (such as getter and / or setter methods) for the type. You have to make use of the supertype's business logic implementation.
Upvotes: 5
Reputation: 1794
autocreate
is true by default and setting this modifier in a type means that the item will be created during initialization.
generate
is also true by default and depending on where it's placed can mean different things:
atomictypeType
, collectiontypeType
, maptypeType
, relationType
: Deprecated, has no effectattributeModelType
, attributeType
: If set as true, getters and setters will be created for the attribute when the project is compiledenumtypeType
: If false no constants will be generated at constant class of extension as well as at corresponding servicelayer enum classitemModelType
, itemtypeType
: Whether a model for the type and models for subtypes will be generatedUpvotes: 7