Class BaseJpaEntity<ID>
java.lang.Object
com.reallifedeveloper.common.infrastructure.persistence.BaseJpaEntity<ID>
- Type Parameters:
ID
- the type of the primary key
- Direct Known Subclasses:
PublishedMessageTracker
,TimestampedJpaEntity
Base class for all JPA entities.
- Author:
- RealLifeDeveloper
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a newAbstractJpaEntity
with null ID.protected
BaseJpaEntity
(@Nullable ID id) Creates a newAbstractJpaEntity
with the given ID. -
Method Summary
-
Constructor Details
-
BaseJpaEntity
protected BaseJpaEntity()Creates a newAbstractJpaEntity
with null ID. -
BaseJpaEntity
Creates a newAbstractJpaEntity
with the given ID.- Parameters:
id
- the ID of the new entity, may benull
-
-
Method Details