| I created repository class in Spring that will allow easy user to easily add list of properties to fetch when using CritertiaQuery API. Right now Hibernate is storing and rendering fetches and joins separately which results in duplicated joins in SQL. I think that all relations should be stored in one join structure with some additional fetch flag to avoid redundant SQL joins. |
|