1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@Entity
@Table(name ="telefones")
public class Telefone extends BaseEntityObject implements Serializable {

  private static final long serialVersionUID = 1L;

  @Id
  @GeneratedValue(strategy=GenerationType.IDENTITY)  
  private Long telefones_id;

  @ManyToOne(fetch = FetchType.EAGER)
  @JoinColumn(name="grupotelefone_id")
  private GrupoTelefone grupotelefone_id;

  @Column
  private String telefonetipo;

  @Column
  private String telefoneddd;

  @Column
  private String telefonenumero;

  @Column
  private String usuariocadastro;

  @Column
  private String usuarioalteracao;

  @Temporal(TemporalType.TIMESTAMP)
  private Date datacadastro = new Date();

  @Temporal(TemporalType.TIMESTAMP)
  private Date dataalteracao = new Date();

  @Column
  private String email;

  @Column
  private String homepage;

  @Column
  private String contato_nm;

  @Column
  private String principal_sn = "F";

  public Telefone() {  }  

  public