io.coodoo.framework.jpa.boundary.entity.AbstractRevisionEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coodoo-jpa-essentials Show documentation
Show all versions of coodoo-jpa-essentials Show documentation
Essential JPA entities and functionality
package io.coodoo.framework.jpa.boundary.entity;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
/**
* Base entity providing identification and revision information.
*
*
*
*
*
*
* Fields
* ID
* Creation Date
* Creation User
* Update Date
* Update User
*
*
* Name
* id
* createdAt
* createdBy
* updatedAt
* updatedBy
*
*
* Type
* Long
* LocalDateTime
* Long
* LocalDateTime
* Long
*
*
* Column name
* id
* created_at
* created_by
* updated_at
* updated_by
*
*
*
* @author coodoo GmbH (coodoo.io)
*/
@SuppressWarnings("serial")
@MappedSuperclass
public abstract class AbstractRevisionEntity extends AbstractRevisionDatesEntity {
@Column(name = "created_by")
protected Long createdBy;
@Column(name = "updated_by")
protected Long updatedBy;
public Long getCreatedBy() {
return createdBy;
}
public void setCreatedBy(Long createdBy) {
this.createdBy = createdBy;
}
public Long getUpdatedBy() {
return updatedBy;
}
public void setUpdatedBy(Long updatedBy) {
this.updatedBy = updatedBy;
}
@Override
public String toString() {
return "AbstractRevisionEntity [id=" + id + ", createdAt=" + createdAt + ", createdBy=" + createdBy + ", updatedAt=" + updatedAt + ", updatedBy="
+ updatedBy + "]";
}
}