摘要:
使用Hibernate注解的步骤如下:(1).添加jar包。①hibernate-annotations-3.4.0.GA根目录下的hibernate-annotations.jar。②hibernate-annotations-3.4.0.GA\lib目录下的hibernate-commons-annotations.jar、ejb3-persistentce.jar。(2).使用注解配置持久化类及对象关联关系。(3).使用AnnotaionConfiguration建立会话工厂。--sessionFactory=new AnnotationConfiguration().configure 阅读全文
posted @ 2014-04-11 16:25
孙洪雨
阅读(630)
评论(0)
推荐(0)

浙公网安备 33010602011771号