JPA – Criteria API and EmbeddedId

You need to use path navigation to access the attribute(s) of the Embeddable. Here is an example from the JPA 2.0 specification (using the static metamodel): 6.5.5 Path Navigation … In the following example, ContactInfo is an embeddable class consisting of an address and set of phones. Phone is an entity. CriteriaQuery<Vendor> q = cb.createQuery(Vendor.class); … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)