1、先创建一个Maven Project 【教程:https://blog.csdn.net/qq_37530335/article/details/83541485 或者 https://www.cnblogs.com/Magus-QiYan/articles/9877768.html】 2、将M Read More
posted @ 2018-10-30 16:59 Magus-QiYan Views(79) Comments(0) Diggs(0)
【部分内容参考地址:https://www.cnblogs.com/woniu2219/p/7111857.html】 Hibernate Hibernate是一个开放源代码的对象关系映射框架,它对JDBC进行了非常轻量级的对象封装,它将POJO与数据库表建立映射关系,是一个全自动的orm框架,hi Read More
posted @ 2018-08-05 16:21 Magus-QiYan Views(127) Comments(0) Diggs(0)
学习Hibernate,必须要理解什么是持久化?结合了一下网上的各位大佬的观点和自己的理解: 持久化概念 持久化是将程序数据在持久状态和瞬时状态间转换的机制。通俗的讲,就是瞬时数据(比如内存中的数据,是不能永久保存的)持久化为持久数据(比如持久化至数据库中,能够长久保存)。 而Hibernate是对 Read More
posted @ 2018-08-05 16:16 Magus-QiYan Views(294) Comments(0) Diggs(0)
刚刚接触SSH框架,虽然可能这个框架已经比较过时了,但是个人认为,SSH作为一个成熟的框架,作为框架的入门还是可以的。 马马虎虎学完了Hibernate的基础,总结一点心得之类的。 学习Hibernate的乐观锁时: 首先要知道为什么要用乐观锁。之所以要用乐观锁,就是为了避免脏数据。这很像数据库原理 Read More
posted @ 2018-08-05 16:13 Magus-QiYan Views(1276) Comments(0) Diggs(0)
MySQL中遇到的几种报错及其解决方法 1.[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right Read More
posted @ 2018-05-07 17:36 Magus-QiYan Views(3779) Comments(0) Diggs(0)