![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JDBC
拾慧
1、以后转载文章不仅要注明文章为转载,还要放置原文章的链接,尊重他人亦是尊重自己。此处说明。
2、坚持积累,不论大小,不论深浅,不论方向,但要不间断,一直在路上才能不停歇。
展开
-
练习最原始的JDBC的基本操作
User.classpackage com.humman.pojo;public class User { private Integer userId; private String username; private Integer userAge; public Integer getUserId() { return userI...原创 2018-04-22 21:32:08 · 337 阅读 · 0 评论 -
spring整合hibernate报Cannot unwrap to requested type [javax.sql.DataSource]
网友提供,有效但不清楚是什么缘故。<property name="connection.provider_class"> org.hibernate.connection.C3P0ConnectionProvider </property>解决办法来源https://bbs.csdn.net/topics/390171593...原创 2019-10-01 21:49:22 · 174 阅读 · 0 评论 -
Hibernate的HQL查询清单整理
使用HQL一直很慌张,没有底气闲来抽了时间把常用的操作测试一遍,亲测可用1、无条件 查询所有字段String hql = "from Customer u " ;2、添加where语句条件查询String hql = "from Customer u where u.customerSource=2" ;3、多条件 and 查询String hql = "from Custom...原创 2019-10-08 00:06:54 · 262 阅读 · 0 评论