javaee.module.backend.entities.delete.AbstractDeleteHelperParent_1 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-javaee-module Show documentation
Show all versions of common-javaee-module Show documentation
This Module contains common JavaEE Helper Classes.
The newest version!
package javaee.module.backend.entities.delete;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;
import javaee.module.backend.entities.update.AbstractUpdateHelper;
@MappedSuperclass
abstract class AbstractDeleteHelperParent_1< User > extends AbstractUpdateHelper< User > {
@Temporal( TemporalType.DATE )
@Column( name = "DELETED_DATE" )
protected Date deletedDate;
@Column( name = "DELETED_REASON", length = 100 )
protected String deletedReason;
@ManyToOne( fetch = FetchType.LAZY )
@JoinColumn( name = "DELETED_BY_USER_ID", referencedColumnName = "ID" )
protected User deletedByUser;
}