export class Offer { static setMapping ( mapping ) { mapping . forProperty ( 'id' ) . increments ( ) . primary ( ) ; mapping . forProperty ( 'name' ) . field ( { type : 'string' } ) ; mapping . forProperty ( 'pictures' ) . oneToMany ( { targetEntity : 'Picture' , mappedBy : 'offer' } ) ; } }