From 3718e4c088bb80446d11f642e9dcee5755804e05 Mon Sep 17 00:00:00 2001 From: Franta Pribyl Date: Mon, 12 May 2014 09:20:31 +0200 Subject: [PATCH] =?UTF-8?q?Zprovozn=C4=9Bny=20Budovy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../info/bukova/isspst/data/Building.java | 60 +------------------ src/main/webapp/WEB-INF/jdbc.properties | 2 +- .../webapp/WEB-INF/spring/root-context.xml | 8 +++ src/main/webapp/buildings/building.zul | 8 +-- src/main/webapp/buildings/buildingForm.zul | 8 +-- 5 files changed, 12 insertions(+), 74 deletions(-) diff --git a/src/main/java/info/bukova/isspst/data/Building.java b/src/main/java/info/bukova/isspst/data/Building.java index 254cabfb..8bc8beda 100644 --- a/src/main/java/info/bukova/isspst/data/Building.java +++ b/src/main/java/info/bukova/isspst/data/Building.java @@ -1,21 +1,13 @@ package info.bukova.isspst.data; -import java.util.Date; - import javax.persistence.Column; import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="BUILDING") -public class Building implements DataModel { +public class Building extends BaseData implements DataModel { - @Id - @Column(name="ID") - @GeneratedValue - private int id; @Column(name="CODE", unique=true) private String code; @@ -26,19 +18,6 @@ public class Building implements DataModel { @Column(name="DESCRIPTION") private String description; - /** - * @return the id - */ - public int getId() { - return id; - } - - /** - * @param id the id to set - */ - public void setId(int id) { - this.id = id; - } /** * @return the code @@ -81,41 +60,4 @@ public class Building implements DataModel { public void setDescription(String description) { this.description = description; } - - @Override - public void setCreated(Date created) { - // TODO Auto-generated method stub - - } - - @Override - public Date getCreated() { - // TODO Auto-generated method stub - return null; - } - - @Override - public void setModified(Date modified) { - // TODO Auto-generated method stub - - } - - @Override - public Date getModified() { - // TODO Auto-generated method stub - return null; - } - - @Override - public boolean isValid() { - // TODO Auto-generated method stub - return false; - } - - @Override - public void setValid(boolean valid) { - // TODO Auto-generated method stub - - } - } diff --git a/src/main/webapp/WEB-INF/jdbc.properties b/src/main/webapp/WEB-INF/jdbc.properties index 658408f0..3483bc97 100644 --- a/src/main/webapp/WEB-INF/jdbc.properties +++ b/src/main/webapp/WEB-INF/jdbc.properties @@ -1,5 +1,5 @@ jdbc.driverClassName=com.mysql.jdbc.Driver jdbc.dialect=org.hibernate.dialect.MySQLDialect -jdbc.databaseurl=jdbc:mysql://127.0.0.1:3306/isspst?characterEncoding=utf8 +jdbc.databaseurl=jdbc:mysql://127.0.0.1:3306/isspst jdbc.username=root jdbc.password=xsacfgd \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/spring/root-context.xml b/src/main/webapp/WEB-INF/spring/root-context.xml index c3a8e678..931b4e11 100644 --- a/src/main/webapp/WEB-INF/spring/root-context.xml +++ b/src/main/webapp/WEB-INF/spring/root-context.xml @@ -88,6 +88,10 @@ + + + + @@ -104,6 +108,10 @@ + + + + diff --git a/src/main/webapp/buildings/building.zul b/src/main/webapp/buildings/building.zul index e34c7d24..ae8e1c7a 100644 --- a/src/main/webapp/buildings/building.zul +++ b/src/main/webapp/buildings/building.zul @@ -3,13 +3,7 @@ - - - - - - - + diff --git a/src/main/webapp/buildings/buildingForm.zul b/src/main/webapp/buildings/buildingForm.zul index 45fd5834..bbe86990 100644 --- a/src/main/webapp/buildings/buildingForm.zul +++ b/src/main/webapp/buildings/buildingForm.zul @@ -30,13 +30,7 @@ - -
-
-
-
+
\ No newline at end of file