Class AbstractBaseEntity
java.lang.Object
org.autumnframework.service.jpa.entities.AbstractBaseEntity
- All Implemented Interfaces:
Serializable,GenericApiIdentifiable<Long>,GenericIdentifiable<Long>,JpaIdentifiable
- Direct Known Subclasses:
AbstractApiBaseEntity
@MappedSuperclass
public abstract class AbstractBaseEntity
extends Object
implements JpaIdentifiable, GenericApiIdentifiable<Long>
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 -
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.identifiable.GenericApiIdentifiable
getCreationDate, getLastModifiedDateMethods inherited from interface org.autumnframework.service.identifiable.GenericIdentifiable
getId, setId
-
Field Details
-
creationDate
-
lastModifiedDate
-
-
Constructor Details
-
AbstractBaseEntity
public AbstractBaseEntity()
-