Add support for Hibernate 4.3.x. Add also support of new JPA 2.1 capabilities, ex : `treat` for `.as(Class)` when entities are joined.