poussecafe.doc.model.domainprocessdoc.DomainProcessDoc Maven / Gradle / Ivy
package poussecafe.doc.model.domainprocessdoc;
import poussecafe.attribute.Attribute;
import poussecafe.discovery.Aggregate;
import poussecafe.doc.StringNormalizer;
import poussecafe.doc.model.BoundedContextComponentDoc;
import poussecafe.domain.AggregateRoot;
import poussecafe.domain.EntityAttributes;
@Aggregate(
factory = DomainProcessDocFactory.class,
repository = DomainProcessDocRepository.class
)
public class DomainProcessDoc extends AggregateRoot {
public String id() {
return StringNormalizer.normalizeString(attributes().boundedContextComponentDoc().value().componentDoc().name());
}
public static interface Attributes extends EntityAttributes {
Attribute boundedContextComponentDoc();
}
}