diff --git a/pages/jdl/entities.md b/pages/jdl/entities.md index 49f4a10da..5b411acec 100644 --- a/pages/jdl/entities.md +++ b/pages/jdl/entities.md @@ -42,9 +42,9 @@ entity [()] { - `` the JHipster supported type of the field, - and as an option: - `` the documentation of the entity, - - `` the options for the entity (see [Options][] for a complete list of available options), + - `` the options for the entity (see [OptionsEntity][] for a complete list of available options), - `
` the database table name (if you want to specify something different that the name automatically computed from the entity name), - - `` the documentation of the field, + - `` the documentation of the field (see [OptionsField][] for a complete list of available options), - `` the options for the field, - `` the validations for the field. @@ -258,4 +258,5 @@ Each field type has its own validation list. Here are the types supported in the
-[Options]: options#available-options "Options" +[OptionsEntity]: options#entity-options "Options" +[OptionsField]: options#field-options "Options" diff --git a/pages/jdl/options.md b/pages/jdl/options.md index 8c76b94ef..84dd792d6 100644 --- a/pages/jdl/options.md +++ b/pages/jdl/options.md @@ -402,13 +402,15 @@ However, for custom options, they will be generated under and `options` key in t ### Available options -Here are the entity options supported in the JDL: - _Not what you're looking for? Check the [application options](/jdl/applications#available-application-configuration-options)._ +#### Entity options + +Here are the entity options supported in the JDL: + - + @@ -510,6 +512,30 @@ _Not what you're looking for? Check the [application options](/jdl/applications#
JDL option nameJDL option name (entity) Option type Default value Possible values
+#### Field options + +Here are the field options supported in the JDL: + + + + + + + + + + + + + + + + + + + + +
JDL option name (field)Default valuePossible valuesComment
defaultValueundefinedany value fitting to the datatype of the field, e.g. "myDefaultValue" or 42 or trueWill define a fixed default value on database schema side on the column, as well as adjust the clients passing in the option as default from input forms (only Angular for now)
defaultValueComputedundefineddatabase functions to generate default values for a column, e.g. "NOW(6)"This will generate a default value on database level using the given function
--- ### See also