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:
- Click on the Download button in the upper-right corner of the JDL-Studio application.
- 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.