随笔分类 -  JPA

摘要:https://blog.csdn.net/lihengzkj/article/details/84676175?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault 阅读全文
posted @ 2021-07-21 19:15 Peter.Jones 阅读(8) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-11-11 21:07 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-09-15 13:39 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
摘要:学习官方文档: https://docs.spring.io/spring-data/jpa/docs/2.3.3.RELEASE/reference/html Specification interface TaskRepository extends JpaRepository<Task, In 阅读全文
posted @ 2020-09-01 09:56 Peter.Jones 阅读(1273) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-08-31 17:16 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-08-14 12:52 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-08-13 16:32 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-07-31 19:08 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
摘要:如果是非主键关联, 映射的时候要序列化 https://stackoverflow.com/questions/55485617/jpa-repository-got-error-cannot-not-serializable-when-get-data-from-database 阅读全文
posted @ 2020-06-18 14:31 Peter.Jones 阅读(674) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-05-14 11:00 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
摘要:原因: 1.加事务注解 @Transactional import org.springframework.transaction.annotation.Transactional; 2.方法必须是public修饰 阅读全文
posted @ 2020-03-26 10:57 Peter.Jones 阅读(374) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-02-26 16:08 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-02-26 15:17 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
摘要:原因: 无论是@OneToOne 还是@ManyToOne,出现这个原因都是因为子表(被关联表)中没有主表(关联表)中ID所对应的记录。 解决办法: 1. 检查为什么子表中没有主表中ID对应的记录 2. 如果子表中没有主表ID对应的记录也可以正常加载数据,那么需要在主表字段上加一个@NotFound 阅读全文
posted @ 2020-02-22 16:14 Peter.Jones 阅读(1704) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-02-21 22:44 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-02-20 13:57 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
摘要:https://docs.oracle.com/javaee/5/api/javax/persistence/Column.html 阅读全文
posted @ 2020-02-20 13:56 Peter.Jones 阅读(498) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-02-18 15:51 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2020-02-18 13:22 Peter.Jones 阅读(0) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示