io.dddrive.core.ddd.model.Part Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dddrive Show documentation
Show all versions of dddrive Show documentation
Application development framework incorporating reactive and domain driven design principles.
package io.dddrive.core.ddd.model;
/**
* A Part is an Entity that belongs to an Aggregate (but might be attached to another part as parent).
*/
public interface Part {
A getAggregate();
Integer getId();
/**
* Calculate all the derived fields, typically after a field change.
*/
void calcAll();
/**
* Calculate all the volatile derived fields, i.e. fields that are not saved to
* the database. This is triggered after loading the aggregate from the
* database.
*/
void calcVolatile();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy