Class BaseObjectEntity<PK extends Comparable<PK> & Serializable>

java.lang.Object
net.solarnetwork.central.domain.BaseObjectIdentity<PK>
net.solarnetwork.central.dao.BaseObjectEntity<PK>
All Implemented Interfaces:
Serializable, Cloneable, Comparable<PK>, net.solarnetwork.dao.Entity<PK>, net.solarnetwork.domain.Identity<PK>
Direct Known Subclasses:
BaseClaimableJob, Ec2VirtualMachine

public class BaseObjectEntity<PK extends Comparable<PK> & Serializable> extends BaseObjectIdentity<PK> implements Cloneable, Serializable, net.solarnetwork.dao.Entity<PK>
Base implementation of Entity using a comparable, serializable primary key.
Since:
1.34
See Also:
  • Constructor Details

    • BaseObjectEntity

      public BaseObjectEntity()
  • Method Details

    • getCreated

      public Instant getCreated()
      Specified by:
      getCreated in interface net.solarnetwork.dao.Entity<PK extends Comparable<PK> & Serializable>
    • setCreated

      public void setCreated(Instant created)
      Set the creation date.
      Parameters:
      created - the created to set
    • getModified

      public Instant getModified()
      Get the modification date.
      Returns:
      the modification date
    • setModified

      public void setModified(Instant modified)
      Set the modification date.
      Parameters:
      modified - the modification date to set