@kerthin/domain
Version:
Kerthin Domain (based on DDD)
19 lines (14 loc) • 485 B
text/typescript
import { AggregateRoot, Aggregate, ValueObjectProp } from '../../lib';
import { Name } from './name.value-object';
import { ExampleEntity } from './example.entity';
export class ExampleAggregate3 extends AggregateRoot {
name: Name;
example: Array<ExampleEntity>;
static create(data): ExampleAggregate3 {
const example3 = new ExampleAggregate3(data);
return example3;
}
}