@themost/jspa
Version:
MOST Web Framework Persistence API
16 lines (15 loc) • 667 B
TypeScript
import { CascadeType } from './CascadeType';
import { ColumnAnnotation, AnyConstructor } from './Column';
import { FetchType } from './FetchType';
import { PermissionAnnotation } from './Permission';
declare interface ManyToOneAnnotation extends PermissionAnnotation {
cascadeType?: CascadeType;
fetchType?: FetchType;
optional?: boolean;
targetEntity?: string | AnyConstructor<unknown>;
}
declare interface ManyToOneColumnAnnotation extends ColumnAnnotation {
manyToOne?: ManyToOneAnnotation;
}
declare function ManyToOne(annotation?: ManyToOneAnnotation): PropertyDecorator;
export { ManyToOneAnnotation, ManyToOneColumnAnnotation, ManyToOne };