Relatório por Empresa de Ônibus (fixed bug #5393)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@36189 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
b98f5a4fc2
commit
86e4e6474b
|
@ -79,6 +79,9 @@ public class Autobus implements Serializable {
|
||||||
@JoinColumn(name = "CIUDAD_ID", referencedColumnName = "CIUDAD_ID")
|
@JoinColumn(name = "CIUDAD_ID", referencedColumnName = "CIUDAD_ID")
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
private Ciudad ciudad;
|
private Ciudad ciudad;
|
||||||
|
@JoinColumn(name = "EMPRESA_ID", referencedColumnName = "EMPRESA_ID")
|
||||||
|
@ManyToOne
|
||||||
|
private Empresa empresa;
|
||||||
@OneToMany(mappedBy = "autobus")
|
@OneToMany(mappedBy = "autobus")
|
||||||
private List<AutobusDoc> autobusDocList;
|
private List<AutobusDoc> autobusDocList;
|
||||||
|
|
||||||
|
@ -260,6 +263,14 @@ public class Autobus implements Serializable {
|
||||||
this.autobusDocList.add(doc);
|
this.autobusDocList.add(doc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Empresa getEmpresa() {
|
||||||
|
return empresa;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEmpresa(Empresa empresa) {
|
||||||
|
this.empresa = empresa;
|
||||||
|
}
|
||||||
|
|
||||||
public void removeDoc(AutobusDoc doc){
|
public void removeDoc(AutobusDoc doc){
|
||||||
this.autobusDocList.remove(doc);
|
this.autobusDocList.remove(doc);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue