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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -