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