Relatório por Empresa de ônibus - Continuação (fixed bug #5460)

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@36521 d1611594-4594-4d17-8e1d-87c2c4800839
master
leonardo 2014-07-11 18:19:05 +00:00
parent 183f7dd04a
commit 0f3fb937b1
2 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ public class Autobus implements Serializable {
@JoinColumn(name = "EMPRESA_ID", referencedColumnName = "EMPRESA_ID")
@ManyToOne
private Empresa empresa;
@OneToMany(mappedBy = "autobus", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@OneToMany(mappedBy = "autobus", cascade = CascadeType.ALL)
private List<AutobusDoc> autobusDocList;
public Autobus() {

View File

@ -27,8 +27,8 @@ public class AutobusDoc {
@Column(name = "AUTOBUSDOC_ID")
@GeneratedValue(strategy = GenerationType.AUTO, generator = "AUTOBUS_DOC_SEQ")
private Integer autobusDocId;
@OneToOne
@JoinColumn(name = "AUTOBUS_ID")
@ManyToOne
@JoinColumn(name = "AUTOBUS_ID", referencedColumnName = "AUTOBUS_ID")
private Autobus autobus;
@JoinColumn(name = "TIPODOCAUTOBUS_ID", referencedColumnName = "TIPODOCAUTOBUS_ID")
@ManyToOne