Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6157757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:50:25+00:00 2026-05-23T20:50:25+00:00

I came across a problem and can not move forward because I cannot get

  • 0

I came across a problem and can not move forward because I cannot get converted from SQL to HSQL. This is de SQL:

SELECT * FROM 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 WHERE i.match_id=m.id AND 
ma.match_id=m.id AND mh.match_id=m.id AND day=20 AND month=07 AND year=2011

I converted it to Hibernate, but I am getting an error, and I don’t understand how LEFT JOIN can be without ON?

This is my 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 where 
i.liveMatches.id=m.id AND ma.liveMatches.id=m.id AND mh.liveMatches.id=m.id AND 
lp.liveMatches.id=m.id AND r.liveMatches.id=m.id AND s.liveMatches.id=m.id AND m.day=" 
+ day + " AND m.month=" + month + " AND m.year=" + year;

This is the error:

org.springframework.orm.hibernate3.HibernateQueryException: unexpected token: on near 
line 1, column 224

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:50:26+00:00Added an answer on May 23, 2026 at 8:50 pm

    Try replacing on with with.

    You might want to have a look here:
    http://docs.jboss.org/hibernate/core/3.3/reference/en/html/queryhql.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Guys, I've came across this problem I can't resolve myselg, I'm pretty sure I
I have came across this problem a few times and can't seem to figure
I came across a problem I cannot solve on my own concerning the downloadable
I came across this problem while preparing for an interview and curious to know
I am new to creating Java web applications and came across this problem when
I am watching a video about [LINQ][1] and came across a problem. In this
Problem: I was following this tutorial when I came across a problem. It appears
I was practicing SRM Problems in Topcoder.I came across this problem Problem Statement: Today
I came across this problem two or three times. One of my customer restored
I recently came across this problem and found a solution but I'm wondering if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.