JPA @Lob 存储大文本 org.postgresql.util.PSQLException: 大型对象无法被使用在自动确认事物交易模式。问题

在文本字段的@Lob前添加  @org.hibernate.annotations.Type(type = "org.hibernate.type.TextType")

猜你喜欢

转载自my.oschina.net/jaakan/blog/1798788
今日推荐