JDL also allows us to declare entity related options easily. Options currently supported are:
- service: By default, JHipster generates REST Resource classes that call the entity repositories directly. This is the simplest option, but in real-world scenarios, we might need a service layer to handle business logic. This option lets us create a service layer with a simple Spring service bean class or with a traditional interface and implementation for the service bean. Possible values are serviceClass and serviceImpl. Choosing the latter will create an interface and implementation, which is preferred by some people.
- dto: By default, domain objects are directly used in the REST endpoints created, which may ...