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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

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

	private Integer id;
	private Integer idordinante;
	private String abi;
	private String cab;
	private String conto;
	private String cin;
	private String descrizioneBanca;
	private String coordinateIban;
	private String codiceBic;
	private boolean contoDefault;
	private String divisa;

	public ContiOrdinanti() {
	}

	public ContiOrdinanti(boolean contoDefault) {
		this.contoDefault = contoDefault;
	}

	public ContiOrdinanti(Integer idordinante, String abi, String cab, String conto, String cin,
			String descrizioneBanca, String coordinateIban, String codiceBic, boolean contoDefault, String divisa) {
		this.idordinante = idordinante;
		this.abi = abi;
		this.cab = cab;
		this.conto = conto;
		this.cin = cin;
		this.descrizioneBanca = descrizioneBanca;
		this.coordinateIban = coordinateIban;
		this.codiceBic = codiceBic;
		this.contoDefault = contoDefault;
		this.divisa = divisa;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

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

	@Column(name = "IDOrdinante")
	public Integer getIdordinante() {
		return this.idordinante;
	}

	public void setIdordinante(Integer idordinante) {
		this.idordinante = idordinante;
	}

	@Column(name = "Abi", length = 5)
	public String getAbi() {
		return this.abi;
	}

	public void setAbi(String abi) {
		this.abi = abi;
	}

	@Column(name = "Cab", length = 5)
	public String getCab() {
		return this.cab;
	}

	public void setCab(String cab) {
		this.cab = cab;
	}

	@Column(name = "Conto", length = 12)
	public String getConto() {
		return this.conto;
	}

	public void setConto(String conto) {
		this.conto = conto;
	}

	@Column(name = "Cin", length = 1)
	public String getCin() {
		return this.cin;
	}

	public void setCin(String cin) {
		this.cin = cin;
	}

	@Column(name = "DescrizioneBanca", length = 50)
	public String getDescrizioneBanca() {
		return this.descrizioneBanca;
	}

	public void setDescrizioneBanca(String descrizioneBanca) {
		this.descrizioneBanca = descrizioneBanca;
	}

	@Column(name = "CoordinateIBAN", length = 42)
	public String getCoordinateIban() {
		return this.coordinateIban;
	}

	public void setCoordinateIban(String coordinateIban) {
		this.coordinateIban = coordinateIban;
	}

	@Column(name = "CodiceBIC", length = 11)
	public String getCodiceBic() {
		return this.codiceBic;
	}

	public void setCodiceBic(String codiceBic) {
		this.codiceBic = codiceBic;
	}

	@Column(name = "Conto_Default", nullable = false)
	public boolean isContoDefault() {
		return this.contoDefault;
	}

	public void setContoDefault(boolean contoDefault) {
		this.contoDefault = contoDefault;
	}

	@Column(name = "Divisa", length = 3)
	public String getDivisa() {
		return this.divisa;
	}

	public void setDivisa(String divisa) {
		this.divisa = divisa;
	}

}
