1
2
3
4
5
6
7
8
9
10
11
12
13
14
@Entity
@Table(name="grupotelefone")
public class GrupoTelefone extends BaseEntityObject implements Serializable {

  @Transient
  private static final long serialVersionUID = 1L;

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

  @OneToMany(mappedBy = "grupotelefone_id", fetch = FetchType.LAZY,
        cascade={CascadeType.ALL, CascadeType.PERSIST})
  private List<Telefone> telefones = new ArrayList<Telefone>();