use of org.apache.cayenne.commitlog.CommitLog in project cayenne by apache.
the class AnnotationCommitLogEntityFactory method createDescriptor.
private CommitLogEntity createDescriptor(String entityName) {
EntityResolver entityResolver = getEntityResolver();
ClassDescriptor classDescriptor = entityResolver.getClassDescriptor(entityName);
CommitLog a = classDescriptor.getObjectClass().getAnnotation(CommitLog.class);
if (a == null) {
return BLOCKED_ENTITY;
}
ObjEntity entity = entityResolver.getObjEntity(entityName);
return new MutableCommitLogLogEntity(entity).setConfidential(a.confidential()).setIgnoreProperties(a.ignoredProperties()).setIgnoreAttributes(a.ignoreAttributes()).setIgnoreToOneRelationships(a.ignoreToOneRelationships()).setIgnoreToManyRelationships(a.ignoreToManyRelationships());
}
Aggregations