From 86e4e6474bf74983676d266b1f4dec830cb2f9d9 Mon Sep 17 00:00:00 2001 From: leonardo Date: Mon, 23 Jun 2014 15:05:11 +0000 Subject: [PATCH] =?UTF-8?q?Relat=C3=B3rio=20por=20Empresa=20de=20=C3=94nib?= =?UTF-8?q?us=20(fixed=20bug=20#5393)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@36189 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../rjconsultores/ventaboletos/entidad/Autobus.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/com/rjconsultores/ventaboletos/entidad/Autobus.java b/src/com/rjconsultores/ventaboletos/entidad/Autobus.java index 6532bf45c..5b990571a 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/Autobus.java +++ b/src/com/rjconsultores/ventaboletos/entidad/Autobus.java @@ -79,6 +79,9 @@ public class Autobus implements Serializable { @JoinColumn(name = "CIUDAD_ID", referencedColumnName = "CIUDAD_ID") @ManyToOne private Ciudad ciudad; + @JoinColumn(name = "EMPRESA_ID", referencedColumnName = "EMPRESA_ID") + @ManyToOne + private Empresa empresa; @OneToMany(mappedBy = "autobus") private List autobusDocList; @@ -260,6 +263,14 @@ public class Autobus implements Serializable { this.autobusDocList.add(doc); } + public Empresa getEmpresa() { + return empresa; + } + + public void setEmpresa(Empresa empresa) { + this.empresa = empresa; + } + public void removeDoc(AutobusDoc doc){ this.autobusDocList.remove(doc); }