hibernate - How to check if passed in parameter is contained in list in JPA? -
i have next named query,
select b bbc b :sd fellow member of b.sda
sda sd=new sda(); and calling em.createnamedquery("myquery").setparameter("sd",sd);
but returning no results.
do set fields in sd? think sd parameter compared sda collection calling equals() on each element. so, first thing should have sda#equals() implemented, , should homecoming true param pass in query (i suppose not total code, , set values sd).
hibernate jpa
No comments:
Post a Comment