I have the following entity configuration:
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
public class BaseEntity {
@Id
private long id;
}
@Entity
public class EntityA extends BaseEntity {
@OneToMany(fetch = FetchType.LAZY)
private Set<EntityC> attributes;
}
The query
from BaseEntity entity left join fetch entity.attributes
throws this exception:
org.hibernate.QueryException: could not resolve property: attributes of: BaseEntity
This used to work. I am not expert on HQL specification, so not sure whether this is a bug or intended feature. |