摘要:
/** * Created by xiezhiyan on 17-9-13. */@Entitypublic class Token { @Id @Column(name = "store_id") private Long storeId; @JsonIgnore @OneToOne @MapsI 阅读全文
摘要:
1. Query方式@Query("select s from Store s join fetch s.products where s.user.id = :user_id")2.@EntityGraph(attributePaths = { "products" })3. @NamedEnti 阅读全文