java.lang.Object
com.reallifedeveloper.common.infrastructure.persistence.BaseJpaEntity<ID>
Type Parameters:
ID - the type of the primary key
Direct Known Subclasses:
PublishedMessageTracker, TimestampedJpaEntity

@MappedSuperclass public class BaseJpaEntity<ID> extends Object
Base class for all JPA entities.
Author:
RealLifeDeveloper
  • Constructor Details

    • BaseJpaEntity

      protected BaseJpaEntity()
      Creates a new AbstractJpaEntity with null ID.
    • BaseJpaEntity

      protected BaseJpaEntity(@Nullable ID id)
      Creates a new AbstractJpaEntity with the given ID.
      Parameters:
      id - the ID of the new entity, may be null
  • Method Details