import { Entity, IEntity, OneToOne, PrimaryKey, Property } from '../../lib'; import { FooBar2 } from './FooBar2'; @Entity() export class FooBaz2 { @PrimaryKey() id: number; @Property() name: string; @OneToOne({ mappedBy: 'baz' }) bar: FooBar2; constructor(name: string) { this.name = name; } } export interface FooBaz2 extends IEntity { }