| 1 |
|
package org.itracker.persistence.dao; |
| 2 |
|
|
| 3 |
|
import java.util.List; |
| 4 |
|
|
| 5 |
|
import org.hibernate.HibernateException; |
| 6 |
|
import org.itracker.model.Report; |
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 4 |
Complexity Density: 0.67 |
|
| 11 |
|
public class ReportDAOImpl extends BaseHibernateDAOImpl<Report> |
| 12 |
|
implements ReportDAO { |
| 13 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 14 |
0
|
public Report findByPrimaryKey(Integer id) {... |
| 15 |
0
|
try { |
| 16 |
0
|
return (Report)getSession().get(Report.class, id); |
| 17 |
|
} catch (HibernateException ex) { |
| 18 |
0
|
throw convertHibernateAccessException(ex); |
| 19 |
|
} |
| 20 |
|
} |
| 21 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 2 |
Complexity Density: 0.67 |
|
| 22 |
0
|
@SuppressWarnings("unchecked")... |
| 23 |
|
public List<Report> findAll() { |
| 24 |
0
|
try { |
| 25 |
0
|
return getSession().getNamedQuery("ReportsAllQuery").list(); |
| 26 |
|
} catch (HibernateException ex) { |
| 27 |
0
|
throw convertHibernateAccessException(ex); |
| 28 |
|
} |
| 29 |
|
} |
| 30 |
|
|
| 31 |
|
} |