Clover Coverage Report - itracker
Coverage timestamp: Tue May 1 2012 16:42:12 CEST
7   34   4   3.5
0   24   0.57   2
2     2  
1    
 
 
  CustomFieldDAOImpl       Line # 12 7 4 0% 0.0
 
No Tests
 
1    package org.itracker.persistence.dao;
2   
3    import java.util.List;
4   
5    import org.hibernate.Criteria;
6    import org.hibernate.HibernateException;
7    import org.itracker.model.CustomField;
8   
9    /**
10    *
11    */
 
12    public class CustomFieldDAOImpl extends BaseHibernateDAOImpl<CustomField>
13    implements CustomFieldDAO {
14   
 
15  0 toggle public CustomField findByPrimaryKey(Integer customFieldId) {
16  0 try {
17  0 return (CustomField)getSession().get(CustomField.class, customFieldId);
18    } catch (HibernateException e) {
19  0 throw convertHibernateAccessException(e);
20    }
21    }
22   
 
23  0 toggle @SuppressWarnings("unchecked")
24    public List<CustomField> findAll() {
25  0 Criteria criteria = getSession().createCriteria(CustomField.class);
26   
27  0 try {
28  0 return criteria.list();
29    } catch (HibernateException e) {
30  0 throw convertHibernateAccessException(e);
31    }
32    }
33   
34    }