java.lang.Object
io.github.mmm.orm.ddl.DbElement
io.github.mmm.orm.ddl.DbTableSpec
DbElement for a database table.-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDbTableSpec(String name, io.github.mmm.entity.bean.EntityBean entity) The constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateName(DbNamingStrategy namingStrategy) io.github.mmm.entity.bean.EntityBeanstatic DbTableSpecof(io.github.mmm.entity.bean.EntityBean entity)
-
Constructor Details
-
DbTableSpec
The constructor.- Parameters:
name- thename.entity- theEntityBean.- See Also:
-
-
Method Details
-
getEntity
public io.github.mmm.entity.bean.EntityBean getEntity()- Returns:
- the associated
EntityBean. It is strictly forbidden to mutate this object and doing so will cause harm and might be explicitly prevented in future releases.
-
createName
- Specified by:
createNamein classDbElement- Parameters:
namingStrategy- theDbNamingStrategy.- Returns:
- the computed
constraintname.
-
of
- Parameters:
entity- theEntityBean.- Returns:
- the corresponding
DbTableSpec.
-