March 2018
Intermediate to advanced
380 pages
9h 23m
English
The entity declaration is done using the following syntax:
entity <entity name> ([<table name>]) { <field name> <type> [<validation>*]}
<entity name> is the name of the entity and will be used for class names and table names. Table names can be overridden using the optional <table name> parameter.
<field name> is the name of the fields (attributes) you want for the entity and <type> is the field type, as in String, Integer, and so on. Refer to http://www.jhipster.tech/jdl/#available-types-and-constraints for all supported field types. The ID field will be automatically created and hence need not be specified in JDL.
<validation> is optional and one or more <validation> for the fields can be specified depending on ...