January 2020
Intermediate to advanced
428 pages
10h 34m
English
Let's look at the TypeScript model generated in src/main/webapp/app/shared/model/product.model.ts. This maps directly to the domain object:
export interface IProduct { id?: number; name?: string; description?: string; price?: number; size?: Size; imageContentType?: string; image?: any; productCategory?: IProductCategory;}export class Product implements IProduct { constructor( public id?: number, public name?: string, public description?: string, public price?: number, public size?: Size, public imageContentType?: string, public image?: any, public productCategory?: IProductCategory ) {}}
The fields are all optional, making it possible to create an object instance without any values. You will also see ...
Read now
Unlock full access