Package de.dlr.proseo.model
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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTest equality of persistent objects based on their unique ID.getId()Gets the id of the persistent objectintGets the version of the persistent objectinthashCode()voidIncrements the version of the persistent objectvoidSet the id of the persistent object.
-
Constructor Details
-
PersistentObject
public PersistentObject()
-
-
Method Details
-
setId
Set the id of the persistent object.- Parameters:
id- the id to set
-
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() -
equals
Test equality of persistent objects based on their unique ID.
-