Project

General

Profile

Revision c7fbbfbb

IDc7fbbfbb55a00778339b40efdc110be5db579614
Parent b6d851cf
Child 62362816

Added by Andreas Müller 2 months ago

remove NomenclaturalStatusDaoHibernateImpl method

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/hibernate/name/NomenclaturalStatusDaoHibernateImpl.java
9 9
 */
10 10
package eu.etaxonomy.cdm.persistence.dao.hibernate.name;
11 11

  
12
import java.util.List;
13

  
14 12
import org.apache.log4j.Logger;
15
import org.hibernate.Criteria;
16 13
import org.springframework.stereotype.Repository;
17 14

  
18
import eu.etaxonomy.cdm.model.common.ReferencedEntityBase;
19 15
import eu.etaxonomy.cdm.model.name.NomenclaturalStatus;
20 16
import eu.etaxonomy.cdm.persistence.dao.hibernate.common.SingleSourcedEntityDaoImpl;
21 17
import eu.etaxonomy.cdm.persistence.dao.name.INomenclaturalStatusDao;
......
25 21
 */
26 22
@Repository
27 23
public class NomenclaturalStatusDaoHibernateImpl
28
			extends SingleSourcedEntityDaoImpl<NomenclaturalStatus> implements INomenclaturalStatusDao {
24
			extends SingleSourcedEntityDaoImpl<NomenclaturalStatus>
25
            implements INomenclaturalStatusDao {
29 26

  
30 27
    @SuppressWarnings("unused")
31 28
	private static final Logger logger = Logger.getLogger(NomenclaturalStatusDaoHibernateImpl.class);
......
34 31
		super(NomenclaturalStatus.class);
35 32
	}
36 33

  
37
	@Override
38
    public List<ReferencedEntityBase> getAllNomenclaturalStatus(Integer limit, Integer start) {
39
		Criteria crit = getSession().createCriteria(NomenclaturalStatus.class);
40
		List<ReferencedEntityBase> results = crit.list();
41
		return results;
42
	}
43

  
44 34
}
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dao/name/INomenclaturalStatusDao.java
8 8
*/
9 9
package eu.etaxonomy.cdm.persistence.dao.name;
10 10

  
11
import java.util.List;
12

  
13
import eu.etaxonomy.cdm.model.common.ReferencedEntityBase;
14 11
import eu.etaxonomy.cdm.model.name.NomenclaturalStatus;
15 12
import eu.etaxonomy.cdm.persistence.dao.common.ISingleSourcedEntityDao;
16 13

  
......
19 16
 */
20 17
public interface INomenclaturalStatusDao extends ISingleSourcedEntityDao<NomenclaturalStatus> {
21 18

  
22
	public List<ReferencedEntityBase> getAllNomenclaturalStatus(Integer limit, Integer start);
23

  
24 19
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)