
hibernate
_古井心
这个作者很懒,什么都没留下…
展开
-
使用com.vladmihalcea的hibernate-types报错:No Dialect mapping for JDBC type: 1111
mysql新版新推了的JSON类型 但是Hibernate官方并没有提供相关支持 于是Hibernate大佬Vlad Mihalcea自己写了个开源库hibernate-types 但是我在使用过程中遇到了问题: 报错 org.hibernate.MappingException: No Dialect mapping for JDBC type: 1111 报错很简单,有一个所谓的JDBC类型居...原创 2019-12-04 11:28:37 · 2706 阅读 · 0 评论 -
Hibernate @OneToOne FetchType.LAZY不生效
假设你有两个实体类,有一对一的关联关系,如下: @Entity(name = "PostDetails") @Table(name = "post_details") public class PostDetails { @Id @GeneratedValue private Long id; @Column(name = "created_on") ...原创 2019-11-11 16:24:12 · 4129 阅读 · 3 评论