use of io.spine.core.Version in project core-java by SpineEventEngine.
the class EntityBuilder method build.
@Override
public E build() {
final I id = id();
final E result = createEntity(id);
final S state = state(result);
final Timestamp timestamp = timestamp();
final Version version = Versions.newVersion(this.version, timestamp);
setState(result, state, version);
return result;
}
Aggregations