资 源 简 介
Java toolkit which makes DAO manager creating easier. It produced DAO compatible with JPA specification. It has implemented CRUD operations and some features (active, hidden, default, etc.). It also extends standard API for criteria (like Hibernate ones).
Examples of using
Simple DAO manager
public class SimpleDaoImpl extends GenericDao {}
Simple DAO manager without creating any class
IDao dao = new GenericDao();
Complex DAO manager with user defined methods
```
public class ComplexDaoImpl extends GenericDao {
public List getByProp(String prop) {
return getEntityManager().createQuery("from EntityImpl where prop = ?").setParameter(1, prop).getResultList();
}
}
```
Complex DAO manager with criteria
```
public class CriteriaDao