From 7dfb3f91a3bd1d74b9d6791ab3ee670483f9e33d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Tue, 20 Mar 2012 23:25:23 +0100 Subject: [PATCH] cleanup --- pom.xml | 1 - src/main/java/de/ctdo/bunti/dao/RoomsDAOImpl.java | 8 ++------ src/main/webapp/WEB-INF/jsp/index.jsp | 1 + 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index f31474c..29a81ca 100644 --- a/pom.xml +++ b/pom.xml @@ -47,7 +47,6 @@ ${org.springframework.version} - org.slf4j slf4j-api diff --git a/src/main/java/de/ctdo/bunti/dao/RoomsDAOImpl.java b/src/main/java/de/ctdo/bunti/dao/RoomsDAOImpl.java index c20e5c3..faa1b78 100644 --- a/src/main/java/de/ctdo/bunti/dao/RoomsDAOImpl.java +++ b/src/main/java/de/ctdo/bunti/dao/RoomsDAOImpl.java @@ -2,14 +2,10 @@ package de.ctdo.bunti.dao; import de.ctdo.bunti.model.Room; import org.springframework.orm.hibernate3.support.HibernateDaoSupport; -import org.springframework.stereotype.Repository; import java.util.List; -/** - * @author: lucas - * @date: 15.03.12 22:01 - */ + public final class RoomsDAOImpl extends HibernateDaoSupport implements RoomsDAO { public RoomsDAOImpl() { @@ -28,7 +24,7 @@ public final class RoomsDAOImpl extends HibernateDaoSupport implements RoomsDAO @Override public Room getRoom(int id) { - return (Room) getHibernateTemplate().get(Room.class, new Integer(id)); + return getHibernateTemplate().get(Room.class, id); } @Override diff --git a/src/main/webapp/WEB-INF/jsp/index.jsp b/src/main/webapp/WEB-INF/jsp/index.jsp index 0924b36..52ad1b0 100644 --- a/src/main/webapp/WEB-INF/jsp/index.jsp +++ b/src/main/webapp/WEB-INF/jsp/index.jsp @@ -73,6 +73,7 @@ $("#messages").append("type: " + data.type + " name=" + data.deviceName + "
" ); }); + }); $( "#tabs" ).tabs({ cookie: { expires: 1 } });