Hi all,
trying to work in conjunction with both functionnalities, coded as followed:
Code:
session.enableFetchProfile(fetchProfile);
Criteria criteria = session.createCriteria(domainClass);
ProjectionList projectionList = Projections.projectionList();
for (String column : columnRelations)
projectionList.add(Projections.property(column).as(column));
criteria.setProjection(projectionList);
criteria.setResultTransformer( new AliasToBeanResultTransformer(domainClass));
criteria = criteria.add(Restrictions.eq("id", id));
List<T> resutList = criteria.list();
session.disableFetchProfile(fetchProfile);
return resutList;
is not working :(
the projectionList is always applied, but it seems to override the FetchProfile referenced...
any idea ???
thx
i42