Options for entities

Add the following snippet for options into the JDL-Studio editor:

service * with serviceClass
paginate Product, Customer, ProductOrder, Invoice, Shipment, OrderItem with pagination

In the options, we keep it simple and declare that we want a service class for all entities. We also enable pagination for some of the entities that may get a lot of entries over time.

The following diagram shows the complete model, with all the entities and their relationships as shown in JDL-Studio:

Now, let's download this JDL file to our file system:

  1. Click on the Download button in the upper-right corner of the JDL-Studio application.
  2. Save the file with the name online-store.jdl inside the online-store directory where we created our application in the previous chapter.

In the next section, we'll learn about entity generation with JHipster.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.89.24