What's the purpose of minOccurs, nillable and restriction?

后端 未结 5 1783
故里飘歌
故里飘歌 2021-02-02 13:44

Documentation for required says:

If required() is true, then Javabean property is mapped to an XML schema ele

5条回答
  •  清酒与你
    2021-02-02 14:29

    Nillable allows empty values. For example, if you have an Integer or a Date, if it's nillable, the XML tag could be empty. If it's not nillable but not required, the XML element would either have to exist with a valid content, or not exist at all; an empty tag wouldn't be valid.

提交回复
热议问题