Spring Data JPA概述
婴儿肥说Spring Data不常用。。
spring可以整合很多框架,如mybatis、hibernate、jpa(Java持久化应用),jpa是一套规范,必须有产品:hibernate jpa、springdata jpa;springdata jpa是spring data项目下的模块,底层是hibernate jpa;
知识点(见son5)(spring data中jpa这一部分)
spring、spring data jpa整合;spring data jpa基本数据操作方式;
hibernate要求表必须有主键;
spring data查询分页、排序相关;
表关联关系配置(pojo中),这不需要两张表联立了;延迟加载属性;一对多关系;
相关知识和问题
指定session的延迟关闭:https://www.cnblogs.com/KAZMA/articles/5329732.html