Package org.genesys.blocks.model
Class EmptyModel
- java.lang.Object
-
- org.genesys.blocks.model.EmptyModel
-
- All Implemented Interfaces:
Serializable,EntityId,org.springframework.data.domain.Persistable<Long>
- Direct Known Subclasses:
BasicModel
@MappedSuperclass public abstract class EmptyModel extends Object implements EntityId, Serializable, org.springframework.data.domain.Persistable<Long>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmptyModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()booleanisNew()Is the entity persisted to the database? Test is based on value ofEntityId.getId()field where negative integers or null mean entity is not yet persisted.StringtoString()
-
-
-
Method Detail
-
isNew
public boolean isNew()
Is the entity persisted to the database? Test is based on value ofEntityId.getId()field where negative integers or null mean entity is not yet persisted. Don't override.- Specified by:
isNewin interfaceorg.springframework.data.domain.Persistable<Long>- Returns:
- true if the
EntityId.getId()is a positive integer, false otherwise
-
-