import {BaseEntity,Entity,Column,Id, ManyToMany} from 'relaen'; import { AmOrgMode } from './amorgmode'; @Entity('AM_ORG_COND') export class AmOrgCond extends BaseEntity{ @Id() @Column({ name:'ORG_COND_ID', type:'int', nullable:false }) public orgCondId:number; @Column({ name:'SHOW_NAME', type:'string', nullable:false, length:128 }) public showName:string; @Column({ name:'ENTITY', type:'string', nullable:false, length:128 }) public entity:string; @Column({ name:'PROP_NAME', type:'string', nullable:false, length:128 }) public propName:string; //关联名 @Column({ name:'REL_NAME', type:'string', nullable:false, length:128 }) public relName:string; @Column({ name:'IS_CASCADE', type:'int', nullable:true }) public isCascade:number; @ManyToMany({ entity:'AmOrgMode', mappedBy:'amOrgConds' }) public amOrgModes:Array; constructor(idValue?:number){ super(); this.orgCondId = idValue; } }