private final String description;
private final String status;
private final String cardinality;
- private final String parentKey;
+ private final Integer parentId;
private final Date createdAt;
private final Date updatedAt;
private final QProfileRuleNote ruleNote;
description = (String) ruleSource.get(RuleDocument.FIELD_DESCRIPTION);
status = (String) ruleSource.get(RuleDocument.FIELD_STATUS);
cardinality = (String) ruleSource.get("cardinality");
- parentKey = (String) ruleSource.get(RuleDocument.FIELD_PARENT_KEY);
+ parentId = (Integer) ruleSource.get(RuleDocument.FIELD_PARENT_KEY);
createdAt = parseOptionalDate(RuleDocument.FIELD_CREATED_AT, ruleSource);
updatedAt = parseOptionalDate(RuleDocument.FIELD_UPDATED_AT, ruleSource);
}
public boolean isEditable() {
- return parentKey != null;
+ return parentId != null;
}
public List<QProfileRuleParam> params() {