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

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

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

	private ApCabTempId id;
	private String agenzia;
	private String indir;
	private String localita;
	private String comune;
	private String prov;
	private String cap;
	private String bic;
	private char mode;

	public ApCabTemp() {
	}

	public ApCabTemp(ApCabTempId id, char mode) {
		this.id = id;
		this.mode = mode;
	}

	public ApCabTemp(ApCabTempId id, String agenzia, String indir, String localita, String comune, String prov,
			String cap, String bic, char mode) {
		this.id = id;
		this.agenzia = agenzia;
		this.indir = indir;
		this.localita = localita;
		this.comune = comune;
		this.prov = prov;
		this.cap = cap;
		this.bic = bic;
		this.mode = mode;
	}

	@EmbeddedId

	@AttributeOverrides({
			@AttributeOverride(name = "abi", column = @Column(name = "ABI", nullable = false, length = 5)),
			@AttributeOverride(name = "cab", column = @Column(name = "CAB", nullable = false, length = 5)) })
	public ApCabTempId getId() {
		return this.id;
	}

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

	@Column(name = "AGENZIA", length = 40)
	public String getAgenzia() {
		return this.agenzia;
	}

	public void setAgenzia(String agenzia) {
		this.agenzia = agenzia;
	}

	@Column(name = "INDIR", length = 80)
	public String getIndir() {
		return this.indir;
	}

	public void setIndir(String indir) {
		this.indir = indir;
	}

	@Column(name = "LOCALITA", length = 40)
	public String getLocalita() {
		return this.localita;
	}

	public void setLocalita(String localita) {
		this.localita = localita;
	}

	@Column(name = "COMUNE", length = 40)
	public String getComune() {
		return this.comune;
	}

	public void setComune(String comune) {
		this.comune = comune;
	}

	@Column(name = "PROV", length = 2)
	public String getProv() {
		return this.prov;
	}

	public void setProv(String prov) {
		this.prov = prov;
	}

	@Column(name = "CAP", length = 5)
	public String getCap() {
		return this.cap;
	}

	public void setCap(String cap) {
		this.cap = cap;
	}

	@Column(name = "BIC", length = 11)
	public String getBic() {
		return this.bic;
	}

	public void setBic(String bic) {
		this.bic = bic;
	}

	@Column(name = "Mode", nullable = false, length = 1)
	public char getMode() {
		return this.mode;
	}

	public void setMode(char mode) {
		this.mode = mode;
	}

}
