Hi,
I was just noting that hibernate reads all attribute columns when reading a relationship, in cases when not all the attributes are necessary.
For example, suppose there is a 1M relationship between Company and Employee.
Code:
company.getEmployees().size()
will read all columns from the Employee table, when you could argue it would be more efficient not reading all the columns.
I know there is the Fetchtype annotation, but this must be set on each attribute, is there anyway of setting this at a relationship level.
regards