Search in sources :

Example 1 with JPACPlainAttrValue

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);
}
Also used : PlainAttrUniqueValue(org.apache.syncope.core.persistence.api.entity.PlainAttrUniqueValue) JPACPlainAttrValue(org.apache.syncope.core.persistence.jpa.entity.conf.JPACPlainAttrValue)

Example 2 with JPACPlainAttrValue

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);
}
Also used : PlainAttrUniqueValue(org.apache.syncope.core.persistence.api.entity.PlainAttrUniqueValue) JPACPlainAttrValue(org.apache.syncope.core.persistence.jpa.entity.conf.JPACPlainAttrValue)

Aggregations

PlainAttrUniqueValue (org.apache.syncope.core.persistence.api.entity.PlainAttrUniqueValue)2 JPACPlainAttrValue (org.apache.syncope.core.persistence.jpa.entity.conf.JPACPlainAttrValue)2