SwiftDAO
2016-08-23
1 0 0
暂无评分
其他
如何获取积分?
注意:此项目已经移到github上,请访问:https://github.com/swiftech/swiftdao
Notice: This project has been exported to Github, please visit: https://github.com/swiftech/swiftdao
SwiftDAO是一个轻量级的,基于Hibernate框架的泛型DAO层。如果您使用Hibernate和Spring 框架做开发,想要快速为项目添加DAO层但又不想在这上面花太多时间,那么SwiftDAO实现了常见的CRUD操作,利用它可以省去很多简单重复代码的编写。使用SwiftDAO必须对Hibernate和Spring框架相当熟悉并且理解数据库基本概念。
SwiftDAO is a lightweight generic DAO layer based on Hibernate and Spring, implemented many CRUD operations.
依赖: Hibernate 3.2.x Spring 2.5.x or 3.x
使用方法:
- 1. 创建实体类:
实现org.swiftdao.entity.KeyedPersistable接口(接口泛型为主键类型),并使用annotation方式做映射。 例如: ``` @Entity() @Table(name = "USER") public class User implements KeyedPersistable
{
@Id()
@Column(name = "USER_ID")
protected Long id;
@Column(name = "USER_NAME", length = 32, nullable = false)
protected String name;
......
// Getter and Setter
相关源码推荐
使用Java开发Android AOA Android开放式附件
0
0
暂无评分
Golang AOA Android开放式附件HID控制
0
0
暂无评分
pclite
0
0
暂无评分
GMSK线性接收机
0
0
暂无评分
传世AFT中变打金版版本--以前很火爆的,收藏很久
0
0
暂无评分
暂无评论