@Entity @Table(name="Profesor") public class Profesor implements Serializable { @Id @Column(name="Id") private int id; @Embedded private Nombre nombre; public Profesor(){ } public Profesor(int id, Nombre nombre) { this.id = id; this.nombre=nombre; } }