Method to reconfigure this serializer. Any previous configuration is cleared.
Each string in the list represents a definition in the following form:
<class pattern>#identity=<identity field pattern>#exclude=<exclude field pattern>
The hash (#) characters are separators and are not part of the parameter
name. An example would be:
com.company.DomainObject.*#identity=id.*#exclude=creationDate
This would select all classes with a class name beginning with
com.company.DomainObject
and would select as PDX identity fields any fields beginning with
id
and would not serialize the field called
creationDate
.
There is no association between the the identity and exclude
options, so the above example could also be expressed as:
com.company.DomainObject.*#identity=id.
com.company.DomainObject.*#exclude=creationDate
Note that all defined patterns are used when determining whether a field
should be considered as an identity field or should be excluded. Thus the
order of the patterns is not relevant.