How to query embedded object in Hibernate?

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

Just navigate it like any other association:

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