2019-10-16 11:48:47 +02:00
|
|
|
import { Entity } from '../entities/Entity';
|
|
|
|
import { ER } from '../ER';
|
2019-10-16 14:41:51 +02:00
|
|
|
import { PropagationConstraint } from '../properties/PropagationConstraint';
|
2019-10-16 11:48:47 +02:00
|
|
|
|
2019-10-16 14:41:51 +02:00
|
|
|
export abstract class Relation<Out extends Entity, In extends Entity> extends ER {
|
2019-10-16 11:48:47 +02:00
|
|
|
|
2019-10-16 14:41:51 +02:00
|
|
|
source?: Out;
|
2019-10-16 11:48:47 +02:00
|
|
|
target: In;
|
|
|
|
|
2019-10-16 14:41:51 +02:00
|
|
|
propagationConstraint?: PropagationConstraint;
|
|
|
|
|
|
|
|
[x: string]: any;
|
|
|
|
|
|
|
|
constructor(propagationConstraint?: PropagationConstraint) {
|
|
|
|
super();
|
|
|
|
this.propagationConstraint = propagationConstraint;
|
|
|
|
}
|
2019-10-16 11:48:47 +02:00
|
|
|
}
|