上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 35 下一页
摘要: 使用方法测试时出现以下错误 java.lang.Exception: No runnable methods at org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(BlockJUnit4ClassRunner.java 阅读全文
posted @ 2018-11-07 17:10 寒潭渡鹤影 阅读(3576) 评论(0) 推荐(0) 编辑
摘要: 0 列表功能实现 1 表与表之间关系回顾 (1)一对多(客户和联系人) (2)多对多(用户和角色) 2 hibernate 一对多操作 (1)一对多映射配置 (2)一对多级联保存 (3)一对多级联删除 (4)inverse属性 3 hibernate多对多操作 (1)多对多映射配置 (2)多对多级联 阅读全文
posted @ 2018-11-07 12:21 寒潭渡鹤影 阅读(229) 评论(0) 推荐(0) 编辑
摘要: org.hibernate.HibernateException: No CurrentSessionContext configured! at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryIm 阅读全文
posted @ 2018-11-07 11:21 寒潭渡鹤影 阅读(1544) 评论(0) 推荐(0) 编辑
摘要: org.hibernate.SessionException: Session was already closedat org.hibernate.internal.SessionImpl.close(SessionImpl.java:411)at sun.reflect.NativeMethod 阅读全文
posted @ 2018-11-07 11:18 寒潭渡鹤影 阅读(1472) 评论(0) 推荐(0) 编辑
摘要: 1 实体类编写规则 2 hibernate主键生成策略 3实体类操作 (1)crud操作 (2)实体对象状态 4 hibernate的一级缓存 5 hibernate事务操作 (1)事务代码规则写法 6 hibernate其他的api(查询) 实体类编写规则 1 实体类里面属性私有的 2 私有属性使 阅读全文
posted @ 2018-11-06 23:31 寒潭渡鹤影 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 出现org.hibernate.TypeMismatchException: Provided id of the wrong type for class cn.itcast.entity.User. Expected: class java.lang.String, got class java 阅读全文
posted @ 2018-11-06 21:04 寒潭渡鹤影 阅读(458) 评论(0) 推荐(0) 编辑
摘要: show create table table_name; 阅读全文
posted @ 2018-11-06 20:17 寒潭渡鹤影 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 我的问题在于把hibernate.cfg.xml文件放置在某个包中了,hibernate.cfg.xml文件需要放置在src目录下。 阅读全文
posted @ 2018-11-06 16:50 寒潭渡鹤影 阅读(3831) 评论(0) 推荐(0) 编辑
摘要: NAVE-WAGB-ZLF4-T23K 阅读全文
posted @ 2018-11-06 16:17 寒潭渡鹤影 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 原配置文件是这样的 改成下面这样就可以了。 阅读全文
posted @ 2018-11-06 15:44 寒潭渡鹤影 阅读(1237) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 35 下一页