![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hibernate
文章平均质量分 72
Today is monday
学习备忘
展开
-
在intellij idea中使用Hibernate详细
1.在intellij idea中添加Hibernate support在file->setting->plugins搜索Hibernate 2.创建一个Hibernate项目3.在mysql数据库中创建数据库hibernate并创建一个学生表(students)4.使用intellij idea连接数据库5.创建持久化类6.使用Junit测试原创 2017-04-16 10:32:58 · 9442 阅读 · 6 评论 -
使用hibernate生成表结构
准备工作首先创建一个空的web项目,在其中添加hibernate的jar包 在src目录下创建hibernate配置文件:hibernate.cfg.xml (如果使用intellij idea创建maven项目,src默认不是Source Folders,可以在file->project Structure->modules下右键src选sources然后apply即可)原创 2017-05-29 11:34:54 · 492 阅读 · 0 评论