Class AbstractApiBaseEntity
java.lang.Object
org.autumnframework.service.jpa.entities.AbstractBaseEntity
org.autumnframework.service.jpa.entities.AbstractApiBaseEntity
- All Implemented Interfaces:
Serializable,GenericApiIdentifiable<Long>,GenericIdentifiable<Long>,ApiEntity,JpaApiIdentifiable,JpaIdentifiable
@MappedSuperclass
public abstract class AbstractApiBaseEntity
extends AbstractBaseEntity
implements ApiEntity
Provides a base superclass for entities which should have auditable capabilities, providing
information on who or what system created each record, when this record was created, who last
updated the record and when this update happened.to enhance an entity with auditable capabilities, just extend this class
and provide normal jpa entity annotations
- Author:
- Timon Veenstra [timon at corizon.nl]
- See Also:
-
Field Summary
Fields inherited from class org.autumnframework.service.jpa.entities.AbstractBaseEntity
creationDate, lastModifiedDate -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.autumnframework.service.jpa.entities.ApiEntity
getApiId, getCreationDate, getLastModifiedDate, setApiId, setCreationDate, setLastModifiedDateMethods inherited from interface org.autumnframework.service.identifiable.GenericIdentifiable
getId, setId
-
Constructor Details
-
AbstractApiBaseEntity
public AbstractApiBaseEntity()
-
-
Method Details
-
preSave
public void preSave()
-