@XmlElement(required = true) protected int id;
@XmlElement(required = false) protected Double salary; convert xsd to java pojo online
Run xjc locally or via build tool to keep code generation in your pipeline and avoid uploading sensitive schemas. @XmlElement(required = true) protected int id
package com.example.model; import javax.xml.bind.annotation.*; @XmlElement(required = false) protected Double salary
@XmlAttribute(name = "active") protected Boolean active;