Is the given property name a reference to the join key of the associated
entity constructed by the given entity type?
This method resolves the
propertyName as a property of the entity type at the
#propertyPath relative to the
#getFromElement().
The implementation does so by invoking
FromElement#getPropertyType(String,String),
which will resolve the property path against the entity's
org.hibernate.persister.entity.PropertyMapping.
On initialization of the
EntityPersister, this
PropertyMapping is filled with
property paths for all the owned properties and associations, and (embedded) identifier or unique key
properties for owned associations.
Henceforth, whenever a property path is found in the
PropertyMapping of the
EntityPersisterof the
FromElement, we know that the property corresponds to a SQL fragment producible from the
FromElement, and as such the entity property can be dereferenced (optimized) in the final query.
For example, consider a fragment like order.customer.id
(where order is a from-element alias). Here, we'd have:
propertyName = "id" AND
propertyPath = "customer"
FromElement = Order
and are being asked to determine whether "customer.id" is a property path of Order