There should be support for referring to properties of {{@Embeddable}} objects in there the WHERE clause of JP-QL queries:
{code} @Entity @NamedQuery(name = "PersonsByAddressLine", query = "FROM Person p WHERE p.address.line = :pAddressLine") public class Person {
@Id private Long id;
@Embedded private Address address;
//... } {code}
|