/* * Telefone.java * * Created on 7 de Julho de 2007, 12:30 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package s3e; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class Telefone { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String prefixo; private String numero; private String ramal; /** Creates a new instance of Telefone */ public Telefone() { } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getPrefixo() { return prefixo; } public void setPrefixo(String prefixo) { this.prefixo = prefixo; } public String getNumero() { return numero; } public void setNumero(String numero) { this.numero = numero; } public String getRamal() { return ramal; } public void setRamal(String ramal) { this.ramal = ramal; } }