2. Required , Unique and Default Properties
Scenario 1: You have property of Item, that is must required for creating Item.From DataBase perspective, you have column which cannot be null and requires user entered value.
Solution 1: Use the attribute required=true at property level.
<property name="mustNeeded" data-type="string" required="true" />
Dont's:
If DataBase defines NOT NULL constraint to column, then required attribute must be set to "true". Vice-versa is not always...