Modified:
/lambico-spring-hibernate/src/test/java/org/lambico/spring/dao/hibernate/HibernateGenericBusinessDaoTest.java
/lambico-spring-hibernate/src/test/java/org/lambico/spring/dao/hibernate/bo/EntityTCBusinessDao.java
=======================================
---
/lambico-spring-hibernate/src/test/java/org/lambico/spring/dao/hibernate/HibernateGenericBusinessDaoTest.java
Sun Mar 6 01:19:55 2011
+++
/lambico-spring-hibernate/src/test/java/org/lambico/spring/dao/hibernate/HibernateGenericBusinessDaoTest.java
Mon Mar 7 01:30:38 2011
@@ -21,7 +21,7 @@
import org.lambico.spring.dao.hibernate.po.EntityTC;
import java.util.List;
import javax.annotation.Resource;
-import org.lambico.spring.dao.hibernate.dao.EntityTCDao;
+import org.lambico.spring.dao.hibernate.bo.EntityTCBusinessDao;
/**
*
@@ -29,8 +29,8 @@
*/
public class HibernateGenericBusinessDaoTest extends BaseTest {
- @Resource(name="entityTCBusinessDao")
- private EntityTCDao entityTCBusinessDao;
+ @Resource
+ private EntityTCBusinessDao entityTCBusinessDao;
public void testStoreRetrieve() {
EntityTC entity = new EntityTC();
=======================================
---
/lambico-spring-hibernate/src/test/java/org/lambico/spring/dao/hibernate/bo/EntityTCBusinessDao.java
Sun Mar 6 01:19:55 2011
+++
/lambico-spring-hibernate/src/test/java/org/lambico/spring/dao/hibernate/bo/EntityTCBusinessDao.java
Mon Mar 7 01:30:38 2011
@@ -18,106 +18,15 @@
package org.lambico.spring.dao.hibernate.bo;
-import java.util.Collection;
-import java.util.List;
import org.lambico.spring.dao.hibernate.po.EntityTC;
import org.lambico.dao.spring.BusinessDao;
import org.lambico.spring.dao.hibernate.HibernateGenericBusinessDao;
-import org.lambico.spring.dao.hibernate.dao.EntityTCDao;
-import org.springframework.beans.factory.annotation.Qualifier;
/**
*
* @author Jacopo Murador <jacopo.murador at seesaw.it>
*/
@BusinessDao
-@Qualifier("entityTCBusinessDao")
-public class EntityTCBusinessDao extends
HibernateGenericBusinessDao<EntityTC, Long> implements EntityTCDao {
-
- @Override
- public List<EntityTC> findByFieldOne(String value) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC>
findByFieldOneAndFieldTwoAndFieldThreeWithName(String one, String two,
- String three) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC> findByFieldTwo(String value) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC> findByFieldThree(String value) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC> findByFieldOneAndFieldTwo(String one, String
two) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC> findByOrderByFieldOne() {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC> findByOrderByFieldTwo() {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC> findByOrderByFieldOneAndFieldTwo() {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public EntityTC findByFieldOneOrderByFieldTwo(String one) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC> findByOrderByFieldOne(int firstResult, int
maxResults) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC> searchAllOrderByFieldOne(int firstResult, int
maxResults) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public Long countByFieldOne(String value) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public Integer countByFieldTwo(String two) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public Integer countByFieldOneAndFieldThree(String one, String three) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public Long maxByFieldOne(String value) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC> searchByFieldOneCollection(Collection<String>
values) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public List<EntityTC> searchByFieldOneArray(String[] values) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
+public class EntityTCBusinessDao extends
HibernateGenericBusinessDao<EntityTC, Long> {
}