hibernate
myEclipse_2008
这个作者很懒,什么都没留下…
展开
-
Hibernate使用count(*)取得表中记录总数
/** * @TODO:查询某一年度的所有计划数量 */ public int findCountByYear(String currYear) { String hqlString = "select count(*) from WaterPlan as p where p.planYear ='"+currYear+"'"; Query...原创 2009-06-10 10:22:48 · 109 阅读 · 0 评论 -
hibernate 笔记
Hibenrate同时支持XML格式的配置文件和传统的properties文件配置方式. <hibernate-configuration> <session-factory> <property name="hibernate.connection.url">jdbc:mysql://localhost/sample</pro...原创 2010-05-18 10:04:09 · 118 阅读 · 0 评论