
Hibernate
文章平均质量分 65
VipMao
天道酬勤,学习永不止步,虽为菜鸟,终会高飞。
展开
-
Hibeinate: Could not determine type for: java.util.List, at table: address_inf, for columns: [org.hi
Hibernate中:Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table: address_inf, for columns: [org.hibernate.mapping.Column(address_Detail)]导致原因:原创 2016-05-11 17:32:44 · 4766 阅读 · 1 评论 -
浅谈Hibernate中映射集合属性以及主键和外键
浅谈Hibernate中映射集合属性以及主键和外键原创 2016-05-07 12:22:29 · 4033 阅读 · 0 评论 -
关于Hibernate操作数据库不显示中文字符
使用Hibernate向数据库插入中文数据时数据库中总是不显示中文字符原创 2016-05-06 16:42:35 · 1882 阅读 · 0 评论 -
Hibernate中Transaction事务的批量提交
Hibernate中Transaction事务的批量提交原创 2016-05-05 21:32:37 · 11733 阅读 · 0 评论 -
Hibernate @Formula详解
Hibernate @Formula注解转载 2016-05-05 12:49:34 · 1593 阅读 · 0 评论 -
Hibernate中更新脱管实体
Hibernate中更新脱管实体原创 2016-05-04 22:43:05 · 1345 阅读 · 0 评论 -
Exception in thread "main" org.hibernate.HibernateException: Access to DialectResolutionInfo cannot
Exception in thread "main" org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set原创 2016-05-04 18:28:27 · 5569 阅读 · 0 评论 -
关于Hibernate4.0之后如何创建SessionFactory
关于Hibernate4.0之后如何创建SessionFactory原创 2016-05-04 18:19:08 · 3103 阅读 · 1 评论 -
Exception in thread "main" org.hibernate.MappingException: invalid configuration
Exception in thread "main" org.hibernate.MappingException: invalid configurationCaused by: org.xml.sax.SAXParseException; lineNumber: 28; columnNumber: 23; 元素类型为 "session-factory" 的内容必须匹配 "(property*,mapping*,(class-cache|collection-cache)*,event*,listene原创 2016-05-04 17:27:30 · 2927 阅读 · 0 评论 -
Hibernate中报错:ServiceRegistryBuilder cannot be resolved to a type
Hibernate中报错:ServiceRegistryBuilder cannot be resolved to a type原创 2016-04-26 00:16:26 · 4531 阅读 · 0 评论 -
Hibernate:Caused by: java.sql.SQLException: Incorrect string value: '\xE8\x8F异常
今天在学习Hibernate插入数据时,一直报错:Exception in thread "main" org.hibernate.exception.GenericJDBCException: could not execute statementCaused by: java.sql.SQLException: Incorrect string value: '\xE8\x原创 2016-05-29 21:07:58 · 4512 阅读 · 1 评论 -
Hibernate中的级联策略和object references an unsaved transient instance - save the transient instance before
本片博文整理关于Hibernate中级联策略cascade和它导致的异常:Exception in thread "main" org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.mao.Address原创 2016-05-11 21:59:34 · 19699 阅读 · 2 评论 -
Exception in thread "main" org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token:
Exception in thread "main" org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: p near line 1, column 45 [select distinct p from com.mao.Person pjoin p.myEvent原创 2016-05-18 18:18:29 · 6171 阅读 · 0 评论 -
浅谈Hibernate缓存机制:一级缓存、二级缓存
浅谈Hibernate缓存机制:一级缓存、二级缓存原创 2016-05-27 18:30:00 · 7119 阅读 · 1 评论 -
Hibernate:命名SQL查询
Hibernate:命名SQL查询原创 2016-05-26 16:49:50 · 5094 阅读 · 0 评论 -
Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured!
Hibernate使用缓存查询时报错:Exception in thread "main" org.hibernate.HibernateException: No CurrentSessionContext configured! at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImp原创 2016-05-27 12:58:26 · 1042 阅读 · 0 评论 -
Exception in thread "main" org.hibernate.TransactionException: commit failed
Caused by: java.sql.SQLException: You can't operate on a closed Connection!!!原创 2016-05-27 19:25:07 · 2328 阅读 · 0 评论 -
Exception in thread "main" org.hibernate.MappingException: Unknown entity: com.mao.PersonSet
Exception in thread "main" org.hibernate.MappingException: Unknown entity: XXX原创 2016-05-06 21:37:40 · 2204 阅读 · 0 评论 -
Exception in thread "main" org.hibernate.QueryException: illegal attempt to dereference collection
Exception in thread "main" org.hibernate.QueryException: illegal attempt to dereference collection原创 2016-05-18 23:47:32 · 2218 阅读 · 0 评论 -
Exception in thread "main" org.hibernate.AnnotationException: List/array has to be annotated with an
Hibernate:Exception in thread "main" org.hibernate.AnnotationException: List/array has to be annotated with an @OrderColumn (or @IndexColumn): com.mao.PersonArray.school原创 2016-05-06 17:31:40 · 1089 阅读 · 0 评论 -
Hibernate Type mismatch: cannot convert from CascadeType to CascadeType[]
Hibernate Type mismatch: cannot convert from CascadeType to CascadeType[]improt 引用错误原创 2016-05-09 18:17:00 · 3500 阅读 · 0 评论 -
Hibernate中SQL标量查询、实体查询
Hibernate:SQL查询中 标量查询和试题查询原创 2016-05-25 20:13:24 · 2266 阅读 · 0 评论 -
Hibernate中Caused by: java.sql.SQLException: Field 'address_id'doesn't have a default value
Hibernate中Exception in thread "main" org.hibernate.exception.GenericJDBCException: could not execute statementCaused by: java.sql.SQLException: Field 'address_id' doesn't have a default value原创 2016-05-10 18:38:35 · 7050 阅读 · 0 评论 -
浅谈:Hibernate中HibernateUtil工具类
浅谈:Hibernate工具类HibernateUtil原创 2016-05-07 23:00:00 · 20567 阅读 · 0 评论 -
Hibernate:组件属性和关联映射的区别
Hibernate:组件属性和关联映射的区别原创 2016-08-01 13:48:35 · 1931 阅读 · 0 评论