- java.lang.Object
-
- io.github.mmm.bean.AbstractBean
-
- io.github.mmm.bean.Bean
-
- io.github.mmm.entity.bean.SimpleEntityBean
-
- All Implemented Interfaces:
io.github.mmm.bean.ReadableBean,io.github.mmm.bean.WritableBean,EntityBean,Entity,io.github.mmm.marshall.MarshallableObject,io.github.mmm.marshall.Marshaller<Object>,io.github.mmm.marshall.Marshalling<Object>,io.github.mmm.marshall.MarshallingObject,io.github.mmm.marshall.UnmarshallableObject,io.github.mmm.marshall.Unmarshaller<Object>,io.github.mmm.property.AttributeReadOnly,io.github.mmm.validation.Validatable,io.github.mmm.value.ReadablePath,io.github.mmm.value.WritablePath
public class SimpleEntityBean extends io.github.mmm.bean.Bean implements EntityBean
Implementation ofEntityBeanas simpleBean.- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description IdProperty<? extends SimpleEntityBean>IdThepropertywith theprimary key.-
Fields inherited from interface io.github.mmm.entity.Entity
PROPERTY_NAME_ID
-
-
Constructor Summary
Constructors Constructor Description SimpleEntityBean()The constructor.SimpleEntityBean(IdProperty<? extends SimpleEntityBean> idProperty)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EntityPropertyBuildersadd()protected io.github.mmm.bean.StandardPropertyBuilderscreatePropertyBuilders()IdProperty<? extends SimpleEntityBean>Id()-
Methods inherited from class io.github.mmm.bean.AbstractBean
add, addProperty, copy, create, createProperty, getProperties, getProperty, getPropertyCount, isDynamic, isLockOwnerInternal, isReadOnly, isThreadSafe, newInstance, onPropertyAdded, path, path, path, requireDynamic, requireWritable, toString, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.entity.bean.EntityBean
getId, setId
-
Methods inherited from interface io.github.mmm.bean.ReadableBean
copy, get, getPropertyCount, getPropertyNameForAlias, getType, isDynamic, isEqualTo, isPolymorphic, isPrototype, newInstance, path, validate, write
-
-
-
-
Field Detail
-
Id
public final IdProperty<? extends SimpleEntityBean> Id
Thepropertywith theprimary key.
-
-
Constructor Detail
-
SimpleEntityBean
public SimpleEntityBean()
The constructor.
-
SimpleEntityBean
public SimpleEntityBean(IdProperty<? extends SimpleEntityBean> idProperty)
The constructor.- Parameters:
idProperty- theID property.
-
-
Method Detail
-
Id
public IdProperty<? extends SimpleEntityBean> Id()
- Specified by:
Idin interfaceEntityBean- Returns:
- the
propertywith theId(primary key) of this entity.
-
add
protected EntityPropertyBuilders add()
- Overrides:
addin classio.github.mmm.bean.AbstractBean
-
createPropertyBuilders
protected io.github.mmm.bean.StandardPropertyBuilders createPropertyBuilders()
- Overrides:
createPropertyBuildersin classio.github.mmm.bean.AbstractBean
-
-