[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1930?page=c...
]
Mike Ressler updated HHH-1930:
------------------------------
Attachment: HibernateTestCase.zip
Gail Badner asked for a test case showing this error. I've attached what I generated.
I modified the Hibernate tutorial application a bit, but its structure should be familiar
to anyone who's walked through the Hibernate tutorial. You'll need to start the
HSQLDB just as you do in the tutorial before you run `ant test` to execute the test case.
I'm also encountering the same exception during development of one of my applications.
I have a workaround with SQL, but I'd rather not use it. Should I rebuild Hibernate
with this exception removed? Or is that going to mask a much deeper rooted problem that
I'll happily plow through later?
Thanks for the advice.
QuerySyntaxException "with-clause expressions did not reference
from-clause element to which the with-clause was associated"
----------------------------------------------------------------------------------------------------------------------------
Key: HHH-1930
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1930
Project: Hibernate Core
Issue Type: Bug
Components: query-hql
Affects Versions: 3.1.3, 3.2.0 cr1, 3.2.0.cr2, 3.2.0.cr3
Reporter: Manfred Geiler
Attachments: HibernateTestCase.zip
In Version 3.1.2 the following "EventManager" HQL query worked fine:
select p from Person p join p.emailAddresses as email with email = 'xyz'
and produced an SQL query like this:
select person0_.PERSON_ID as PERSON1_2_, person0_.age as age2_, person0_.firstname as
firstname2_, person0_.lastname as lastname2_
from PERSON person0_
inner join PERSON_EMAIL_ADDR emailaddre1_
on person0_.PERSON_ID=emailaddre1_.PERSON_ID and
(emailaddre1_.EMAIL_ADDR='xyz')
From Version 3.1.3 on this HQL throws the following QuerySyntaxException:
"with-clause expressions did not reference from-clause element to which the
with-clause was associated"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira