Wesley13 Wesley13
2年前
Spring Boot下使用JPA报错:'hibernate.dialect' not set的解决办法
SpringBoot 下使用JPA,报org.hibernate.HibernateException:AccesstoDialectResolutionInfocannotbenullwhen'hibernate.dialect'notset错误,异常信息如下:Causedby:org.hibernate.Hiber
Wesley13 Wesley13
2年前
Java project 中获取hibernate的Configuration的2种方式
   方式一、通过hibernate.cfg.xml文件配置        1.hibernate.cfg.xml<?xmlversion"1.0"encoding"UTF8"?<!DOCTYPEhibernateconfigurationPUBLIC"//Hiberna
Wesley13 Wesley13
2年前
Junit4入门测试附带了点Hbernate
packagecom.zlp.test;importstaticorg.junit.Assert.assertEquals;importjava.util.Iterator;importorg.hibernate.Query;importorg.hibernate.Se
Stella981 Stella981
2年前
Hibernate4教程一:入门介绍
第一部分:Hibernate入门Hibernate是什么   Hibernate是一个轻量级的ORM框架  ORM原理(ObjectRelationalMapping) !(https://static.oschina.net/uploads/img/201702/23145651_cPt4.jpg)ORM基本对
Stella981 Stella981
2年前
Hibernate简单学习总结
1.hibernate.cfg.xml配置<!DOCTYPE hibernateconfiguration PUBLIC"//Hibernate/Hibernate Configuration DTD 3.0//EN""http://www.hibernate.org/dtd/hibernateconfigurat
Stella981 Stella981
2年前
Hibernate第七篇【对象状态、一级缓存】
前言本博文主要讲解Hibernate的细节—对象的状态和一级缓存…对象状态Hibernate中对象的状态:\临时/瞬时状态\持久化状态\游离状态学习Hibernate的对象状态是为了更清晰地知道Hibernate的设计思想,以及是一级缓存的基础…当然啦,
Stella981 Stella981
2年前
Hibernate:sessionFactory 对象的创建
packagecom.bjsxt.util;importorg.hibernate.SessionFactory;importorg.hibernate.cfg.Configuration;publicclassHibernateUtil{privatestatic
Stella981 Stella981
2年前
Hibernate与Mybatis的区别
  最近在准备面试,在复习Hibernate和Mybatis。Hibernate和Mybatis在日常的开发中,都有使用到过。现在对hibernate和mybatis做一下对比,便于大家更好的理解和学习,使自己在做项目中更加得心应手。 1、开发速度的对比    从开发速度来说,Hibernate的真正掌握要比Mybatis难一些。Mybat
Stella981 Stella981
2年前
Hibernate数据库对应的方言
数据库方言(Dialect)DB2org.hibernate.dialect.DB2DialectDB2AS/400org.hibernate.dialect.DB2400DialectDB2OS390org.hibernate.dialect.DB2390DialectPostgreSQLorg.hibernate.
Stella981 Stella981
2年前
Hibernate HQL查询
packagecn.sasa.test;importorg.hibernate.Session;importorg.hibernate.Transaction;importcn.sasa.domain.account;importcn.sasa.utils.HibernateUti