java.lang.Object
com.netflix.genie.web.data.services.impl.jpa.entities.IdEntity
com.netflix.genie.web.data.services.impl.jpa.entities.AuditEntity
All Implemented Interfaces:
AuditProjection, IdProjection, Serializable
Direct Known Subclasses:
FileEntity, TagEntity, UniqueIdEntity

@MappedSuperclass public class AuditEntity extends IdEntity implements AuditProjection
Abstract class to support basic columns for all entities for genie.
See Also:
  • Constructor Details

    • AuditEntity

      public AuditEntity()
  • Method Details

    • onCreateBaseEntity

      protected void onCreateBaseEntity()
      Updates the created and updated timestamps to be creation time.
    • onUpdateBaseEntity

      protected void onUpdateBaseEntity()
      On any update to the entity will update the update time.
    • getCreated

      public Instant getCreated()
      Get when this entity was created.
      Specified by:
      getCreated in interface AuditProjection
      Returns:
      The created timestamps
    • getUpdated

      public Instant getUpdated()
      Get the time this entity was updated.
      Specified by:
      getUpdated in interface AuditProjection
      Returns:
      The updated timestamp
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class IdEntity
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class IdEntity