JPA系列九:映射关联关系-双向多对多

1、创建实体类Category @Table(name="JPA_CATEGORIES") @Entity public class Category { private Integer id; private String categoryName; private Set<Item> items = new HashSet<>(); @GeneratedValue @Id
相关文章
相关标签/搜索