|
Hi Eliazar & Dionis,
I've faced the same issue. But my observation is something like this. When you write criteria.setFetchMode("prop", FetchMode.JOIN) it makes left outer join on that prop. When you write criteria.createAlias("prop", "prop") it makes inner join on that prop, as per this doc: http://docs.jboss.org/hibernate/envers/3.6/javadocs/org/hibernate/Criteria.html#createAlias%28java.lang.String,%20java.lang.String%29
So using both at the same time obviously doesn't make sense. If you want to make left outer join with alias, you can do the following: criteria.createAlias("prop", "prop", Criteria.LEFT_JOIN)
I may be wrong but this solves my problem.
|