![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JPA
FREE技术
目前专注于大学生项目源码实战开发、讲解、毕业答疑辅导等
展开
-
JPA注解@DiscriminatorColumn@DiscriminatorValue
1、多个entity对应同一张表,用一个字段区分 @Entity @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) @Table(name = "GRP_UNITINFO") @Inheritance(strategy = InheritanceType.SINGLE_TABLE) ...转载 2018-08-28 17:37:10 · 9540 阅读 · 0 评论 -
JPA实现分页&CRUD笔记&JPA查询语言
散列收集:1.具体实现 @RequestMapping(value = "/findallByPage") public Page<User> findAllByPage() { Sort sort = new Sort(Sort.Direction.ASC,"id"); Pageable pageable = new PageRequest(2...原创 2018-08-25 22:49:48 · 438 阅读 · 0 评论