How to query a property of type Listin JPA

前端 未结 3 1916
渐次进展
渐次进展 2021-02-05 18:21

Lets say we have this JPA-annotated class, with a property of type List. This code is currently working fine.

@Entity
public class Family {
    ...
    @Collecti         


        
3条回答
  •  青春惊慌失措
    2021-02-05 19:25

    List found = getHibernateTemplate().find(
    "from Family as f join f.elements as e where e = ?",
    new Object[]{"yyy"});
    

提交回复
热议问题