// This is an automatically generated file. Please do not change its contents manually! import * as _sap_capire_bookshop from './../sap/capire/bookshop'; import * as __ from './../_'; import * as _ from './..'; export function _BookAspect any>(Base: TBase) { return class Book extends Base { ID ?: number; title ?: string; descr ?: string; author ?: __.Association.to<_sap_capire_bookshop.Author>; genre ?: __.Association.to<_sap_capire_bookshop.Genre>; stock ?: number; price ?: number; /** * Type for an association to Currencies * * See https://cap.cloud.sap/docs/cds/common#type-currency */ currency ?: _.Currency; image ?: string; }; } export class Book extends _._managedAspect(_BookAspect(__.Entity)) {} export class Books extends Array {} export function _AuthorAspect any>(Base: TBase) { return class Author extends Base { ID ?: number; name ?: string; dateOfBirth ?: Date; dateOfDeath ?: Date; placeOfBirth ?: string; placeOfDeath ?: string; books ?: __.Association.to.many<_sap_capire_bookshop.Books>; }; } export class Author extends _._managedAspect(_AuthorAspect(__.Entity)) {} export class Authors extends Array {}