hibernate
Dongguabai
这个作者很懒,什么都没留下…
展开
-
javax.validation.ValidationException: HV000041: Call to TraversableResolver.isReachable() threw an e
写实体类时,经常会对域增加校验,例如@NotNull表示哪个字段不能为空,昨天晚上调试代码,就遇到了问题,@Entitypublic class ApplicationCategory implements Serializable { private static final long serialVersionUID = -8018302345969463947L; @...转载 2019-11-06 16:29:14 · 2084 阅读 · 0 评论 -
Hibernate报错:org.hibernate.ObjectNotFoundException: No row with the given identifier exists 解决办法
转自:https://www.cnblogs.com/crazytrip/p/5355056.html报错信息:org.hibernate.event.internal.DefaultLoadEventListener onLoadINFO: HHH000327: Error performing load command : org.hibernate.ObjectNotFoundE...转载 2019-06-11 12:58:59 · 1872 阅读 · 0 评论 -
Spring 整合 Hibernate 打印 SQL
<bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"> <property name="dataSource" ref="routingDataSource" /> <property name...原创 2019-08-05 00:23:10 · 699 阅读 · 0 评论 -
Hibernate 与数据库乐观锁
原文地址:https://mp.weixin.qq.com/s?__biz=MzU1OTgyMDc3Mg==&mid=2247483932&idx=1&sn=c36ffc786f825018937062d9205907a3&chksm=fc103897cb67b181c0d03d189821b3c6f8fbd75688e9129a19b1c9cc3a01b8136d...原创 2019-08-08 08:38:07 · 217 阅读 · 0 评论