package sicura.entities;
// Generated 2-lug-2017 12.20.06 by Hibernate Tools 5.2.3.Final

import java.sql.Clob;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * CompiledConvalidaTable generated by hbm2java
 */
@Entity
@Table(name = "CompiledConvalidaTable", schema = "dbo")
public class CompiledConvalidaTable implements java.io.Serializable {

	private CompiledConvalidaTableId id;
	private Clob preSqlscript;
	private Clob sqlaggiornaCampiControllo;

	public CompiledConvalidaTable() {
	}

	public CompiledConvalidaTable(CompiledConvalidaTableId id, Clob preSqlscript, Clob sqlaggiornaCampiControllo) {
		this.id = id;
		this.preSqlscript = preSqlscript;
		this.sqlaggiornaCampiControllo = sqlaggiornaCampiControllo;
	}

	@EmbeddedId

	@AttributeOverrides({ @AttributeOverride(name = "idbanca", column = @Column(name = "IDBanca", nullable = false)),
			@AttributeOverride(name = "tipologia", column = @Column(name = "Tipologia", nullable = false, length = 50)) })
	public CompiledConvalidaTableId getId() {
		return this.id;
	}

	public void setId(CompiledConvalidaTableId id) {
		this.id = id;
	}

	@Column(name = "PreSQLScript", nullable = false)
	public Clob getPreSqlscript() {
		return this.preSqlscript;
	}

	public void setPreSqlscript(Clob preSqlscript) {
		this.preSqlscript = preSqlscript;
	}

	@Column(name = "SQLAggiornaCampiControllo", nullable = false)
	public Clob getSqlaggiornaCampiControllo() {
		return this.sqlaggiornaCampiControllo;
	}

	public void setSqlaggiornaCampiControllo(Clob sqlaggiornaCampiControllo) {
		this.sqlaggiornaCampiControllo = sqlaggiornaCampiControllo;
	}

}
