hibernate
hengaoxingrenshini
这个作者很懒,什么都没留下…
展开
-
hibernate映射关系之set集合的方法
EditFlowBean 中书写:private Set tacheList = new HashSet();// 目录子表对象public void setSchemaName(String schemaName) { this.schemaName = schemaName; } public Set getTacheList() { return tacheLis原创 2011-12-27 15:52:03 · 267 阅读 · 0 评论 -
学习下Hibernate的Criteria
学习下Hibernate的Criteria 原文地址:http://xuganggogo.javaeye.com/blog/440078 方法说明方法 说明 Restrictions.eq = Restrictions.allEq 利用Map来进行多个等于的限制转载 2011-12-27 16:20:35 · 215 阅读 · 0 评论 -
PreparedStatement 与 Statement
PreparedStatement数据库在执行带“?”的sql语句他会预编译放到mysql系统里面,以后再调用的时候就直接传递参数就可以了,效率稍微比Statement好些,因为预编译是比较耗时的。对所有的sql都缓存,如果重复使用的情况下最好用他,比如多次update,多次delete但是,如果”?”的参数个数动态变化时,仍然要预编译。Statement 每次执行的时候都要预编译,比较毫原创 2012-01-04 16:39:28 · 180 阅读 · 0 评论 -
Criteria DetachedCriteria 用法
select A.* FROM AETABLE A where not exists ( select entryid FROM AETABLE B where B.classpk = A.classpk and B.userid = A.userid and B.modifie转载 2012-06-12 17:12:37 · 1105 阅读 · 1 评论