SQL to Hibernate query conversion -
i came across problem , can not move forward because cannot converted sql hsql. de sql:
select * live_information i, live_matches_away ma, live_matches_home mh, live_matches m left join live_periods lp on lp.match_id=m.id left join live_results r on r.match_id=m.id left join live_scorers s on s.match_id=m.id i.match_id=m.id , ma.match_id=m.id , mh.match_id=m.id , day=20 , month=07 , year=2011
i converted hibernate, getting error, , don't understand how left join can without on?
this hsql:
from livematches m, liveinformation i, livematchesaway ma, livematcheshome mh left join liveperiods lp on lp.livematches.id=m.id left join liveresults r on r.livematches.id=m.id left join livescorers s on s.livematches.id=m.id i.livematches.id=m.id , ma.livematches.id=m.id , mh.livematches.id=m.id , lp.livematches.id=m.id , r.livematches.id=m.id , s.livematches.id=m.id , m.day=" + day + " , m.month=" + month + " , m.year=" + year;
this error:
org.springframework.orm.hibernate3.hibernatequeryexception: unexpected token: on near line 1, column 224
thanks.
try replacing on
with
.
you might want have here: http://docs.jboss.org/hibernate/core/3.3/reference/en/html/queryhql.html
Comments
Post a Comment