U
- the auditing type. Typically some kind of user.PK
- the type of the auditing type's identifier.@MappedSuperclass public abstract class AbstractAuditable<U,PK extends Serializable> extends AbstractPersistable<PK> implements org.springframework.data.domain.Auditable<U,PK,LocalDateTime>
Constructor and Description |
---|
AbstractAuditable() |
Modifier and Type | Method and Description |
---|---|
Optional<U> |
getCreatedBy() |
Optional<LocalDateTime> |
getCreatedDate() |
Optional<U> |
getLastModifiedBy() |
Optional<LocalDateTime> |
getLastModifiedDate() |
void |
setCreatedBy(U createdBy) |
void |
setCreatedDate(LocalDateTime createdDate) |
void |
setLastModifiedBy(U lastModifiedBy) |
void |
setLastModifiedDate(LocalDateTime lastModifiedDate) |
equals, getId, hashCode, isNew, setId, toString
public Optional<U> getCreatedBy()
getCreatedBy
in interface org.springframework.data.domain.Auditable<U,PK extends Serializable,LocalDateTime>
public void setCreatedBy(U createdBy)
setCreatedBy
in interface org.springframework.data.domain.Auditable<U,PK extends Serializable,LocalDateTime>
public Optional<LocalDateTime> getCreatedDate()
getCreatedDate
in interface org.springframework.data.domain.Auditable<U,PK extends Serializable,LocalDateTime>
public void setCreatedDate(LocalDateTime createdDate)
setCreatedDate
in interface org.springframework.data.domain.Auditable<U,PK extends Serializable,LocalDateTime>
public Optional<U> getLastModifiedBy()
getLastModifiedBy
in interface org.springframework.data.domain.Auditable<U,PK extends Serializable,LocalDateTime>
public void setLastModifiedBy(U lastModifiedBy)
setLastModifiedBy
in interface org.springframework.data.domain.Auditable<U,PK extends Serializable,LocalDateTime>
public Optional<LocalDateTime> getLastModifiedDate()
getLastModifiedDate
in interface org.springframework.data.domain.Auditable<U,PK extends Serializable,LocalDateTime>
public void setLastModifiedDate(LocalDateTime lastModifiedDate)
setLastModifiedDate
in interface org.springframework.data.domain.Auditable<U,PK extends Serializable,LocalDateTime>
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.