Package org.javers.core.commit
Class CommitMetadata
java.lang.Object
org.javers.core.commit.CommitMetadata
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommitMetadata(String author, Map<String, String> properties, LocalDateTime commitDate, Instant commitDateInstant, CommitId id) -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreated date as local date.Created date as UTC timestampgetId()inthashCode()booleanstatic CommitMetadatatoString()
-
Constructor Details
-
CommitMetadata
-
-
Method Details
-
nullObject
-
getAuthor
-
getProperties
-
getCommitDate
Created date as local date.
CommitDate is persisted as LocalDateTime (without information about time zone and daylight saving time).
It may affects your query results. For example, once a year when DST ends, one hour is repeated (clock goes back from 3 am to 2 am). Looking just on the commitDate we can't distinct in which iteration of the hour, given commit was made. -
getCommitDateInstant
Created date as UTC timestamp -
getId
-
isBeforeOrEqual
-
toString
-
equals
-
hashCode
public int hashCode()
-