@themost/jspa
Version:
MOST Web Framework Persistence API
19 lines (18 loc) • 748 B
TypeScript
import { DataModelPrivilegeBase } from '@themost/common';
import { CascadeType } from './CascadeType';
import { ColumnAnnotation } from './Column';
import { FetchType } from './FetchType';
import { PermissionAnnotation } from './Permission';
declare interface OneToManyAnnotation extends PermissionAnnotation {
cascadeType?: CascadeType;
fetchType?: FetchType;
optional?: boolean;
targetEntity?: unknown;
mappedBy: string;
privileges?: DataModelPrivilegeBase[];
}
declare interface OneToManyColumnAnnotation extends ColumnAnnotation {
oneToMany?: OneToManyAnnotation;
}
declare function OneToMany(annotation: OneToManyAnnotation): PropertyDecorator;
export { OneToManyAnnotation, OneToManyColumnAnnotation, OneToMany };