Skip to Content
Full Stack Development with JHipster
book

Full Stack Development with JHipster

by Deepu K Sasidharan, Sendil Kumar N
March 2018
Intermediate to advanced content levelIntermediate to advanced
380 pages
9h 23m
English
Packt Publishing
Content preview from Full Stack Development with JHipster

Entities

Let's start by defining our entities:

  1. Copy the following snippet for Product and ProductCategory into the JDL Studio editor:
/** Product sold by the Online store */entity Product {    name String required    description String    price BigDecimal required min(0)    size Size required    image ImageBlob}enum Size {    S, M, L, XL, XXL}entity ProductCategory {    name String required    description String}

The Product entity is the core of the domain model; it holds product information such as namedescriptionpricesize, and image which is a Blob. name, price, and size are required fields. price also has a min value validation. The size field is an enum with defined values.

The ProductCategory entity is used to group products together. It has name

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Full Stack Development with JHipster - Second Edition

Full Stack Development with JHipster - Second Edition

Deepu K Sasidharan, Sendil Kumar Nellaiyapen
Jasmine Cookbook

Jasmine Cookbook

Munish Kumar

Publisher Resources

ISBN: 9781788476317Supplemental Content