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

javaee.module.backend.entities.delete.AbstractDeleteHelperParent_1 Maven / Gradle / Ivy

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;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy