Tuesday, 1 October 2013

Hibernate Criteria API : Projections related confusion

Hibernate Criteria API : Projections related confusion

I am using join between multiple tables. I want to retrieve columns from
one table only. I tried something like this without success.
ProjectionList projectionList = Projections.projectionList();
projectionList.add(Projections.property("b.*"));
Getting this exception,
could not resolve property: * of: MyClassName

No comments:

Post a Comment