Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 783 Bytes

File metadata and controls

21 lines (14 loc) · 783 Bytes
Default Values

You can specify default values for properties defined by configuration interfaces. These values will be returned instead of null if the property is not set in the storage location – the database or *app.properties files.

A default value can be specified as a string using the @Default annotation, or as a specific type using other annotations from com.haulmont.cuba.core.config.defaults package:

link:../../../../../../source/common/configinterface_6.java[role=include]

A default value for an entity is a string of the {entity_name}-{id}-{optional_view_name} format, for example:

link:../../../../../../source/common/configinterface_7.java[role=include]