import {BaseEntity,Entity,Column,Id,JoinColumn,ManyToOne,OneToMany,EntityProxy} from 'relaen'; import {AmFileType} from './amfiletype'; import {AmAlgorithm} from './amalgorithm'; import {AmImportTemplate} from './amimporttemplate'; import { AmProperty } from './amproperty'; @Entity("AM_FILE") export class AmQueryField extends BaseEntity{ @Id() @Column({ name:'FILE_ID', type:'int', nullable:false }) public fileId:number; @ManyToOne({entity:'AmProperty'}) @JoinColumn({ name:'PROP_ID', refName:'PROP_ID', nullable:true }) public amProperty:AmProperty; @Column({ name:'COND_NAME', type:'string', nullable:true, length:128 }) public condName:string; }