Package com.totvs.tjf.core.common.domain
Class AbstractEntity<K extends DomainObjectId<?>>
- java.lang.Object
-
- com.totvs.tjf.core.common.domain.AbstractEntity<K>
-
- All Implemented Interfaces:
DomainObject,IdentifiableDomainObject<K>
- Direct Known Subclasses:
AbstractDomainEntity
@MappedSuperclass public abstract class AbstractEntity<K extends DomainObjectId<?>> extends Object implements IdentifiableDomainObject<K>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractEntity()protectedAbstractEntity(K id)
-
-
-
Field Detail
-
id
@AggregateIdentifier protected K extends DomainObjectId<?> id
-
-
Constructor Detail
-
AbstractEntity
protected AbstractEntity()
-
AbstractEntity
protected AbstractEntity(@NonNull K id)
-
-
Method Detail
-
getId
public K getId()
Description copied from interface:IdentifiableDomainObjectReturn the identifier.- Specified by:
getIdin interfaceIdentifiableDomainObject<K extends DomainObjectId<?>>- Returns:
- id or
null.
-
-