content: package com.t2ti.fenix.model.cadastros;
  
  import java.io.Serializable;
  import java.math.BigDecimal;
  
  import javax.persistence.Column;
  import javax.persistence.Entity;
  import javax.persistence.GeneratedValue;
  import javax.persistence.GenerationType;
  import javax.persistence.Id;
  import javax.persistence.JoinColumn;
  import javax.persistence.ManyToOne;
  import javax.persistence.NamedQuery;
  
  
  /**
   * The persistent class for the vendedor database table.
   * 
   */
  @Entity
  @NamedQuery(name="Vendedor.findAll", query="SELECT v FROM Vendedor v")
  public class Vendedor implements Serializable {
  	private static final long serialVersionUID = 1L;
  
  	@Id
  	@GeneratedValue(strategy=GenerationType.IDENTITY)
  	private Integer id;
  
  	private BigDecimal comissao;
  
  	@Column(name="META_VENDAS")
  	private BigDecimal metaVendas;
  
  	//bi-directional many-to-one association to Colaborador
  	@ManyToOne
  	@JoinColumn(name="ID_COLABORADOR")
  	private Colaborador colaborador;
  
  	public Vendedor() {
  	}
  
  	public Integer getId() {
  		return this.id;
  	}
  
  	public void setId(Integer id) {
  		this.id = id;
  	}
  
  	public BigDecimal getComissao() {
  		return this.comissao;
  	}
  
  	public void setComissao(BigDecimal comissao) {
  		this.comissao = comissao;
  	}
  
  	public BigDecimal getMetaVendas() {
  		return this.metaVendas;
  	}
  
  	public void setMetaVendas(BigDecimal metaVendas) {
  		this.metaVendas = metaVendas;
  	}
  
  	public Colaborador getColaborador() {
  		return this.colaborador;
  	}
  
  	public void setColaborador(Colaborador colaborador) {
  		this.colaborador = colaborador;
  	}
  
  }