use of org.apache.syncope.core.persistence.jpa.entity.conf.JPACPlainAttrValue in project syncope by apache.
the class ConfTest method add.
private void add(final CPlainAttr newAttr, final String value) {
JPACPlainAttrValue attrValue;
if (newAttr.getSchema().isUniqueConstraint()) {
attrValue = new JPACPlainAttrValue();
((PlainAttrUniqueValue) attrValue).setSchema(newAttr.getSchema());
} else {
attrValue = new JPACPlainAttrValue();
}
newAttr.add(value, attrValue);
}
use of org.apache.syncope.core.persistence.jpa.entity.conf.JPACPlainAttrValue in project syncope by apache.
the class ConfTest method add.
private void add(final CPlainAttr newAttr, final String value) {
JPACPlainAttrValue attrValue;
if (newAttr.getSchema().isUniqueConstraint()) {
attrValue = new JPACPlainAttrValue();
((PlainAttrUniqueValue) attrValue).setSchema(newAttr.getSchema());
} else {
attrValue = new JPACPlainAttrValue();
}
newAttr.add(value, attrValue);
}
Aggregations