java - Search JPA entities that contain Lists using fields in those Lists -
let's have entity named foo. foo entity contains list of bar entities. bar entity has name.
we persist number of foo records.
now, present user jsp page search foo records. 1 input field give them bar name. way inflate list<foo> matches user's requested bar name?
i believe jpql handle without problem.
select f foo f join f.bar b b.name = :name
Comments
Post a Comment