Hibernate杂记

Posted on 2012-10-31 16:57 劳者多能 阅读(114) 评论(0)  编辑  收藏

Hibernate使用getCurrentSession用法:需要在hibernate中配置:
<property name="hibernate.current_session_context_class">thread</property>

只有注册用户登录后才能发表评论。


网站导航: