首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > JPA的数据访问对象的工具包

JPA的数据访问对象的工具包

  • 资源大小:32.75 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: jpa 数据 访问 对象 工具包

资 源 简 介

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

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP