Hi, i need to create simple filter filtering in related entity relation.
Entity A i am using is standard entity entity B is also standard entity but entity C is integer entity. And here comes the catch.
A to B is ONE_TO_MANY
B to C is MANY_TO_ONE
Check image:
A is actual entity. (standard entity)
B is “jazdy” entity (standard entity)
C is “dopravca” entity (integer entity)
This is setting
i get this exeption:
java.lang.IllegalArgumentException: You have attempted to set a value of type class java.lang.Integer for parameter filter_NalGSKWSMG85186 with expected type of class com.company.doprava.entity.DopravcoviaIn from query string select e from doprava_Doprava e join e.jazdy j where ((e.date_of_change >= :e_date_of_change_1_1 and e.date_of_change < :e_date_of_change_1_2) and e.stav = :filter_stav31279 and j.id is not null and j.dopravca like :filter_NalGSKWSMG85186) order by e.date_of_change desc, e.id desc.