在运行时生成您的“道”类的库
2016-05-18
0 0 0
暂无评分
其他
如何获取积分?
TUTORIAL
Description
Runtimedao or runtime DAO is a library for generating your DAO classes at runtime. It has already have Log4j, Hibernate, JPA, PostgreSQL, MySQL and other dependencies included.
For example, let TestVO be a VO basic entity class and TestDAO a DAO interface related to TestVO:
TestVO.java ``` package org.runtimedao.sampleproject;
//imports
@Entity public class TestVO {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE)
private int id;
private String login;
private String password;
//setters and getters
} ```
TestDAO.java ``` package org.runtimedao.sampleproject;
//imports
@DAOEntity(TestVO.class)
public interface TestDAO extends DAO
@HQL("FROM TestVO t WHERE t.login = ?")
TestVO findByLogin(String login);
@HQL("FROM TestVO t WHERE t.login = ? AND t.password = ?")
TestVO findByLoginAndPassword(Strin
运行
生成
相关源码推荐
python生成6位随机码
0
0
暂无评分
轨迹生成器
2
0
暂无评分
三层生成
0
0
暂无评分
不定积分的生成
1
0
暂无评分
检查空气条件,如果我们可以运行或不。
0
0
暂无评分
暂无评论