Class PersistentObject

java.lang.Object
de.dlr.proseo.model.PersistentObject
Direct Known Subclasses:
ApiMetrics, ClassOutputParameter, Configuration, ConfigurationInputFile, ConfiguredProcessor, InputFilter, Job, JobStep, Mission, MonExtService, MonExtServiceStateOperation, MonExtServiceStateOperationDay, MonExtServiceStateOperationMonth, MonOrderState, MonProductProduction, MonService, MonServiceState, MonServiceStateOperation, MonServiceStateOperationDay, MonServiceStateOperationMonth, Orbit, ProcessingFacility, ProcessingOrder, ProcessingOrderHistory, Processor, ProcessorClass, Product, ProductArchive, ProductClass, ProductFile, ProductQuery, SimplePolicy, SimpleSelectionRule, Spacecraft, Task, Workflow, WorkflowOption

@MappedSuperclass public abstract class PersistentObject extends Object
Abstract superclass of all persistent classes Updated for Spring Data 3.5 / Hibernate 6.6 as per https://docs.spring.io/spring-data/jpa/reference/jpa/entity-persistence.html
Author:
Thomas Bassler
  • Constructor Details

    • PersistentObject

      public PersistentObject()
  • Method Details

    • setId

      public void setId(Long id)
      Set the id of the persistent object.
      Parameters:
      id - the id to set
    • getId

      public Long getId()
      Gets the id of the persistent object
      Returns:
      the object id
    • getVersion

      public int getVersion()
      Gets the version of the persistent object
      Returns:
      the object version
    • incrementVersion

      public void incrementVersion()
      Increments the version of the persistent object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Test equality of persistent objects based on their unique ID.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to compare this object to
      Returns:
      true, if obj is a persistent object and has the same ID, false otherwise
      See Also: