Hello, I found a really weird bug. Can anyone tell me if its real, or if I don't know something important about Hibernate
I am doing a search with Session.createCriteria(). When I add aliases to my criteria, but don't use them, the results change. Here's the block of aliases. When I comment them out, the results change
cr = cr.createAlias("activityDialogs", "ads") .createAlias("ads.activityMatchCourseUnits", "ads_amcus") .createAlias("ads_amcus.courseUnit", "ads_amcus_cu") .createAlias("ads_amcus_cu.course", "ads_amcus_cu_c");
Of course, cr is a Criteria with all sorts of other aliases and Restrictions added to it. However, I don't see how adding an alias (and not referencing it) could change anything.
Am I confused?
Thanks in advance Peter
|