About query embedded object in Hibernate


#1

I want query by embedded object’s attribute, how to do this?? Please help me!!


#2

You can do it like this:

Select e
From Entity e
Where e.myEmbeddable.myAttribute = :attr