Entity Names
Last updated
Last updated
In addition to the modelName
, the @Entity
decorator supports other names. These include the pluralName
which can be useful for dynamically describing entities in plurality in log messages, messages displayed in the ui, etc. Additionally a uriName
may be specified that can be used when building API endpoint urls in your entity services.
Some examples of using the @Entity
decorator to name your entities:
Auto-entity provides a number of utility functions for retrieving the various names of entities. Refer to the documentation for more information.
Note that each entity class may only be decorated by the @Entity
decorator once! The above multiple uses is only for example's sake.