implement list find method for user and group services (#2283 and #2284). Tests are...
[cdmlib.git] / cdmlib-services / src / main / java / eu / etaxonomy / cdm / api / service / ServiceImpl.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.cdm.api.service;
12
13 import org.apache.log4j.Logger;
14 import org.springframework.stereotype.Service;
15 import org.springframework.transaction.annotation.Propagation;
16 import org.springframework.transaction.annotation.Transactional;
17
18 import eu.etaxonomy.cdm.model.common.CdmBase;
19 import eu.etaxonomy.cdm.persistence.dao.common.ICdmEntityDao;
20
21 @Service
22 @Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
23 public class ServiceImpl extends ServiceBase<CdmBase, ICdmEntityDao<CdmBase>> implements IService<CdmBase> {
24 @SuppressWarnings("unused")
25 private static final Logger logger = Logger.getLogger(ServiceImpl.class);
26
27 //@Autowired
28 //@Qualifier("mainDao")
29 protected ICdmEntityDao<CdmBase> mainDao;
30
31 //@Autowired
32 protected void setDao(ICdmEntityDao<CdmBase> dao) {
33 this.dao = dao;
34 }
35
36 }