摘要: @MappedSuperclass 阅读全文
posted @ 2017-09-07 14:32 涉谷猫猫 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1. Query方式@Query("select s from Store s join fetch s.products where s.user.id = :user_id")2.@EntityGraph(attributePaths = { "products" })3. @NamedEnti 阅读全文
posted @ 2017-09-07 14:14 涉谷猫猫 阅读(658) 评论(0) 推荐(0) 编辑