hibernate - How to check if passed in parameter is contained in list in JPA? -


I have the following named query,

Select from BBC B where: SD member B. Sda

  sda sd = new sda ();  

and I'm calling em.createNamedQuery ("MyQuery"). SetParameter ("sd", sd);

But this is not returning any results.

Do you set any field in sd ? I think that the sd parameter is calling equals () on each code from the SDA collection. So, the first thing is that you should implement SDA # equals () , and return it to the absolute value passing in the query true (I think That's not the full code, and you set some value in sd .)


Comments