spring
haolongabc
这个作者很懒,什么都没留下…
展开
-
hibernate中实现运用分级查询 2
hibernate中SQLQuery的addEntity();方法 如果使用原生sql语句进行query查询时,hibernate是不会自动把结果包装成实体的。所以要手动调用addEntity(Class class)等一系列方法。 如session.createSQLQuery(sql).addEntity(Class class);注意hibernate3.0.原创 2014-04-11 15:14:27 · 685 阅读 · 0 评论 -
hibernate中实现运用分级查询 1
hibernate对原生sql的支持:原创 2014-04-11 15:20:08 · 1799 阅读 · 0 评论 -
spring 配置文件中的占位符 使用 context:property-placeholder
这个在spring中配置文件中是非常常用的。 context:property-placeholder大大的方便了我们数据库的配置。 [html] view plain copy 只需要在spring的配置文件里添加一句:context:property-placeholder?location="classpath:jdbc.proper原创 2016-01-24 18:03:05 · 2727 阅读 · 0 评论