How to query embedded object in Hibernate?


#1

I want query by embedded object’s attribute, how can I do.


#2

Just navigate it like any other association:

select e
from MyEntity e
where e.embeded.attr = :attr