Revision: 3724
http://openutils.svn.sourceforge.net/openutils/?rev=3724&view=rev
Author: gcatania
Date: 2011-12-02 14:39:04 +0000 (Fri, 02 Dec 2011)
Log Message:
-----------
BSHD-2 adding test dao, fixing another one
Modified Paths:
--------------
trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/dao/CarDAO.java
Added Paths:
-----------
trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/dao/CarMakerDAO.java
Modified: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/dao/CarDAO.java
===================================================================
--- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/dao/CarDAO.java 2011-12-02 14:38:27 UTC (rev 3723)
+++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/dao/CarDAO.java 2011-12-02 14:39:04 UTC (rev 3724)
@@ -27,7 +27,7 @@
import it.openutils.dao.hibernate.HibernateDAO;
import it.openutils.dao.hibernate.HibernateDAOImpl;
-import it.openutils.hibernate.test.model.Person;
+import it.openutils.hibernate.test.model.Car;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
@@ -37,17 +37,17 @@
/**
* @author gcatania
*/
-public interface CarDAO extends HibernateDAO<Person, Long>
+public interface CarDAO extends HibernateDAO<Car, Long>
{
@Repository("carDAO")
- class PersonDAOImpl extends HibernateDAOImpl<Person, Long> implements CarDAO
+ class CarDAOImpl extends HibernateDAOImpl<Car, Long> implements CarDAO
{
@Autowired
- public PersonDAOImpl(SessionFactory factory)
+ public CarDAOImpl(SessionFactory factory)
{
- super(Person.class);
+ super(Car.class);
setSessionFactory(factory);
}
}
Added: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/dao/CarMakerDAO.java
===================================================================
--- trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/dao/CarMakerDAO.java (rev 0)
+++ trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/dao/CarMakerDAO.java 2011-12-02 14:39:04 UTC (rev 3724)
@@ -0,0 +1,55 @@
+/**
+ *
+ * openutils base Spring-Hibernate DAO (http://www.openmindlab.com/lab/products/bshd5.html)
+ *
+ * Copyright(C) 2005-2011, Openmind S.r.l. http://www.openmindonline.it
+ *
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ * You may obtain a copy of the License at
+ *
+ * http://www.gnu.org/licenses/lgpl-2.1.html
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package it.openutils.hibernate.test.dao;
+
+import it.openutils.dao.hibernate.HibernateDAO;
+import it.openutils.dao.hibernate.HibernateDAOImpl;
+import it.openutils.hibernate.test.model.CarMaker;
+
+import org.hibernate.SessionFactory;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Repository;
+
+
+/**
+ * @author gcatania
+ */
+public interface CarMakerDAO extends HibernateDAO<CarMaker, Long>
+{
+
+ @Repository("carMakerDAO")
+ class CarMakerDAOImpl extends HibernateDAOImpl<CarMaker, Long> implements CarMakerDAO
+ {
+
+ @Autowired
+ public CarMakerDAOImpl(SessionFactory factory)
+ {
+ super(CarMaker.class);
+ setSessionFactory(factory);
+ }
+ }
+
+}
Property changes on: trunk/openutils-bshd5/src/test/java/it/openutils/hibernate/test/dao/CarMakerDAO.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|