All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.coodoo.framework.jpa.boundary.entity.AbstractRevisionDatesEntity Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
package io.coodoo.framework.jpa.boundary.entity;

import java.time.LocalDateTime;

import javax.persistence.Column;
import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;

import io.coodoo.framework.jpa.control.JpaRevisionEntityListener;

/**
 * Base entity providing identification and revision information.
 * 
 * 
*
* * * * * * * * * * * * * * * * * * * * * * * * * * *
FieldsIDCreation DateUpdate Date
NameidcreatedAtupdatedAt
TypeLongLocalDateTimeLocalDateTime
Column nameidcreated_atupdated_at
* * @author coodoo GmbH (coodoo.io) */ @SuppressWarnings("serial") @MappedSuperclass @EntityListeners(JpaRevisionEntityListener.class) public abstract class AbstractRevisionDatesEntity extends AbstractEntity { @Column(name = "created_at", nullable = false) protected LocalDateTime createdAt; @Column(name = "updated_at") protected LocalDateTime updatedAt; public LocalDateTime getCreatedAt() { return createdAt; } public void setCreatedAt(LocalDateTime createdAt) { this.createdAt = createdAt; } public LocalDateTime getUpdatedAt() { return updatedAt; } public void setUpdatedAt(LocalDateTime updatedAt) { this.updatedAt = updatedAt; } @Override public String toString() { return "AbstractRevisionDatesEntity [id=" + id + ", createdAt=" + createdAt + ", updatedAt=" + updatedAt + "]"; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy