![](https://img-blog.csdnimg.cn/20190918140053667.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
jpa
jpa
qq_26264237
这个作者很懒,什么都没留下…
展开
-
jpa hql 多对多查询
@Entity@Table(name="T_USER")public class User implements Serializable{ @Id @GeneratedValue(generator = "system-uuid") @GenericGenerator(name = "system-uuid", strategy = "uuid2") private String id; //所属角色集合 @ManyToMany(fetch=FetchType.LAZY) @Join原创 2020-12-10 19:20:52 · 241 阅读 · 1 评论 -
jpa接口详解
jpa接口详解RepositoryCrudRepositoryPagingAndSortingRepository@Data@Entity // 声明这个类对应了一个数据库表@Table(name = "BB_CLOTHES") // 声明了数据库实体对应的表信息,如果没有指定,则表名和实体的名称保持一致public class Clothes implements Serializable{ private static final long serialVersionUID = -301880原创 2020-08-30 15:08:06 · 1146 阅读 · 0 评论 -
jpa的Pageable和PageRequest的源码
jpa的Pageable和PageRequest的源码常用方法PageableUnpagedAbstractPageRequestPageRequestQPageRequestPageable|--AbstractPageRequest|--|--PageRequest|--|--QPageRequest|--Unpage常用方法 Sort sort01 = new Sort(Direction.ASC, "name"); Sort sort02 = Sort.by(Direction原创 2020-08-29 11:03:12 · 1484 阅读 · 1 评论 -
jpa级联保存
@Data@Entity@Table(name = "BB_CLOTHES")public class Clothes implements Serializable{ private static final long serialVersionUID = -3018808522887346432L; @Id @GeneratedValue(strategy=GenerationType.IDENTITY) private Long id; @Column(length = 32) .原创 2020-09-16 10:43:33 · 774 阅读 · 0 评论