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;

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

	private BancheId id;

	public Banche() {
	}

	public Banche(BancheId id) {
		this.id = id;
	}

	@EmbeddedId

	@AttributeOverrides({ @AttributeOverride(name = "id", column = @Column(name = "ID", nullable = false)),
			@AttributeOverride(name = "codiceSocietà", column = @Column(name = "CodiceSocietà", length = 3)),
			@AttributeOverride(name = "funzioneOrdinante", column = @Column(name = "FunzioneOrdinante", length = 10)),
			@AttributeOverride(name = "abi", column = @Column(name = "Abi", length = 5)),
			@AttributeOverride(name = "cab", column = @Column(name = "Cab", length = 5)),
			@AttributeOverride(name = "conto", column = @Column(name = "Conto", length = 12)),
			@AttributeOverride(name = "contoFormatoContabilizzazione", column = @Column(name = "ContoFormatoContabilizzazione", length = 20)),
			@AttributeOverride(name = "divisa", column = @Column(name = "Divisa", length = 3)),
			@AttributeOverride(name = "descrizioneConto", column = @Column(name = "DescrizioneConto", length = 30)),
			@AttributeOverride(name = "coordinateIban", column = @Column(name = "CoordinateIBAN", length = 50)),
			@AttributeOverride(name = "saldoContabile", column = @Column(name = "SaldoContabile", length = 15)),
			@AttributeOverride(name = "segnoSaldoContabile", column = @Column(name = "SegnoSaldoContabile", length = 1)),
			@AttributeOverride(name = "dataSaldoContabile", column = @Column(name = "DataSaldoContabile", length = 23)),
			@AttributeOverride(name = "saldoLiquido", column = @Column(name = "SaldoLiquido", length = 15)),
			@AttributeOverride(name = "segnoSaldoLiquido", column = @Column(name = "SegnoSaldoLiquido", length = 1)),
			@AttributeOverride(name = "dbgridSelect", column = @Column(name = "DBGridSelect", nullable = false)),
			@AttributeOverride(name = "contoDefault", column = @Column(name = "ContoDefault", nullable = false)),
			@AttributeOverride(name = "codiceSia", column = @Column(name = "CodiceSIA", length = 5)),
			@AttributeOverride(name = "saldoValutazioneCapienza", column = @Column(name = "SaldoValutazioneCapienza", length = 15)),
			@AttributeOverride(name = "segnoValutazioneCapienza", column = @Column(name = "SegnoValutazioneCapienza", length = 1)),
			@AttributeOverride(name = "lastSaved", column = @Column(name = "LastSaved", nullable = false, updatable=false, insertable=false)),
			@AttributeOverride(name = "flagStampa", column = @Column(name = "FlagStampa", nullable = false)),
			@AttributeOverride(name = "circuitoFlussoOut", column = @Column(name = "CircuitoFlussoOut", length = 15)),
			@AttributeOverride(name = "contoPerCassa", column = @Column(name = "ContoPerCassa", nullable = false)),
			@AttributeOverride(name = "flagContabilizzazione", column = @Column(name = "FlagContabilizzazione", nullable = false)),
			@AttributeOverride(name = "flagExportPrometeo", column = @Column(name = "FlagExportPrometeo", nullable = false)) })
	public BancheId getId() {
		return this.id;
	}

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

}
