Can collectionType="java.util.Set" be used? I tried setting it and
got this as a result which will not compile. I'm trying to find a
way to prevent duplicates.
protected List<PersonRecord> personRecord = new Set<PersonRecord>
();
/**
* Gets the value of the personRecord property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the
personRecord property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getPersonRecord().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {_at_link PersonRecord }
*
*
*/
public List<PersonRecord> getPersonRecord() {
if (personRecord == null) {
personRecord = new Set<PersonRecord>();
}
return this.personRecord;
}