Hi
Thanks for the reply!
I tried
Code:
INFO: Creating query select i2 , i1 from Property as i1 inner join i1.propertyEntity as i2 where i2.type = 'orderby' order by i1.dateTime asc
and got the following output from hibernate, it is the same as before. My order clause are removed.
Code:
as suggested
Hibernate:
/* select
i2 ,
i1
from
Property as i1
inner join
i1.propertyEntity as i2
where
i2.type = 'orderby' */ select
entity1_.id as col_0_0_,
property0_.id as col_1_0_
from
property property0_
inner join
entity entity1_
on property0_.propertyEntity_id=entity1_.id
where
entity1_.entityType='orderby'
What are the reason that you suggested the inner join.
Thanks, Niels