org.springframework.data.jpa.domain
Class AbstractAuditable<U,PK extends Serializable>
java.lang.Object
org.springframework.data.jpa.domain.AbstractPersistable<PK>
org.springframework.data.jpa.domain.AbstractAuditable<U,PK>
- Type Parameters:
U
- the auditing type. Typically some kind of user.PK
- the type of the auditing type's idenifier
- All Implemented Interfaces:
- Serializable, Auditable<U,PK>, Persistable<PK>
@MappedSuperclass
public abstract class AbstractAuditable<U,PK extends Serializable>
- extends AbstractPersistable<PK>
- implements Auditable<U,PK>
Abstract base class for auditable entities. Stores the audition values in persistent fields.
- Author:
- Oliver Gierke
- See Also:
- Serialized Form
AbstractAuditable
public AbstractAuditable()
getCreatedBy
public U getCreatedBy()
- Specified by:
getCreatedBy
in interface Auditable<U,PK extends Serializable>
setCreatedBy
public void setCreatedBy(U createdBy)
- Specified by:
setCreatedBy
in interface Auditable<U,PK extends Serializable>
getCreatedDate
public org.joda.time.DateTime getCreatedDate()
- Specified by:
getCreatedDate
in interface Auditable<U,PK extends Serializable>
setCreatedDate
public void setCreatedDate(org.joda.time.DateTime createdDate)
- Specified by:
setCreatedDate
in interface Auditable<U,PK extends Serializable>
getLastModifiedBy
public U getLastModifiedBy()
- Specified by:
getLastModifiedBy
in interface Auditable<U,PK extends Serializable>
setLastModifiedBy
public void setLastModifiedBy(U lastModifiedBy)
- Specified by:
setLastModifiedBy
in interface Auditable<U,PK extends Serializable>
getLastModifiedDate
public org.joda.time.DateTime getLastModifiedDate()
- Specified by:
getLastModifiedDate
in interface Auditable<U,PK extends Serializable>
setLastModifiedDate
public void setLastModifiedDate(org.joda.time.DateTime lastModifiedDate)
- Specified by:
setLastModifiedDate
in interface Auditable<U,PK extends Serializable>
Copyright © 2011-2012 SpringSource. All Rights Reserved.