Creating a SimpleEntity
Steps to create a SimpleEntity
Declare your class this way :
Add the imports and part statements, the @Modddel
annotation (don't forget including the contentValidation), and the private empty constructor.
Add the factory constructor. The member parameters of the factory constructor should all be modddels.
Create your failure(s) sealed class(es).
You can now run the generator, and then override and implement the "validate" methods. Note that the "validate" method of the contentValidation is automatically generated, and you should never override it (Your IDE's Quick Fix won't override it neither).
Complete Example
Last updated