posted 17 years ago
hi ,
Might it look like this.......
List lst = session.createCriteria(SubCategories.class).createAllias("Book","bk").add(Expression.eq("bk.id",id).add(Order asc);
May there will be change in the Allias name but the query returns list of SubCategories.....