org.hibernate.QueryException: could not resolve property

QueryException in Hibernate can be caused by several thinks. One of them is associated with entities fields access. If you define a field that can't be accessed (no getter defined for private fields, field's name bad written in the query), you can see following error:
org.hibernate.QueryException: could not resolve property: name of: library.model.entity.PageContent [SELECT p FROM library.model.entity.PageContent p WHERE p.placement.id = :placementId ORDER BY p.placement.id ASC, p.name ASC]