diff --git a/src/com/rjconsultores/ventaboletos/entidad/DiagramaAutobus.java b/src/com/rjconsultores/ventaboletos/entidad/DiagramaAutobus.java index 54ea2854c..7eab8fe99 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/DiagramaAutobus.java +++ b/src/com/rjconsultores/ventaboletos/entidad/DiagramaAutobus.java @@ -8,10 +8,12 @@ import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; + import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; +import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @@ -50,7 +52,7 @@ public class DiagramaAutobus implements Serializable { private Date fecmodif; @Column(name = "USUARIO_ID") private Integer usuarioId; - @OneToMany(mappedBy = "diagramaAutobus", cascade = CascadeType.ALL) + @OneToMany(mappedBy = "diagramaAutobus", cascade = CascadeType.ALL,fetch=FetchType.EAGER) private List detDiagramaAutobusList; @Column(name = "DESCDIAGRAMA") private String descDiagrama;