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