cosmetics

This commit is contained in:
Daniel Hutzel
2023-07-17 14:22:00 +02:00
parent 1d14e75691
commit 06c583d0cd
15 changed files with 363 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
// This is an automatically generated file. Please do not change its contents manually!
const cds = require('@sap/cds')
const csn = cds.entities('AdminService')
module.exports.Book = csn.Books
module.exports.Books = csn.Books
module.exports.Author = csn.Authors
module.exports.Authors = csn.Authors
// actions
// enums

View File

@@ -0,0 +1,38 @@
// 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<TBase extends new (...args: any[]) => 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<Book> {}
export function _AuthorAspect<TBase extends new (...args: any[]) => 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<Author> {}