Class Revision
java.lang.Object
net.datenwerke.rs.incubator.service.versioning.entities.Revision
- All Implemented Interfaces:
Serializable,Comparable<Revision>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Hibernate Envers revision entity.
This entity represents a single revision entry persisted by Hibernate Envers and contains contextual information, such as the identifier of the user who triggered the revision.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanCompares this revision entity with another object.longgetId()longlonginthashCode()Returns the hash code for this revision entity.voidsetId(long id) voidsetTimestamp(long timestamp) voidsetUserId(long userId) toString()Returns a string representation of this revision entity.
-
Constructor Details
-
Revision
public Revision()
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
getRevisionDate
-
getTimestamp
public long getTimestamp() -
setTimestamp
public void setTimestamp(long timestamp) -
getUserId
public long getUserId() -
setUserId
public void setUserId(long userId) -
equals
Compares this revision entity with another object.Two revision entities are considered equal if both their revision id and timestamp are equal.
-
hashCode
public int hashCode()Returns the hash code for this revision entity.The hash code is computed based on the revision id and timestamp.
-
toString
Returns a string representation of this revision entity. -
compareTo
- Specified by:
compareToin interfaceComparable<Revision>
-