[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2376) Query with fully qualified entity class fails

Neukomm (JIRA) noreply at atlassian.com
Tue Feb 27 11:17:32 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2376?page=comments#action_26331 ] 

Neukomm commented on HHH-2376:
------------------------------

You're getting exactly the same Exception as I do - definitely looks like the same issue. 

> Query with fully qualified entity class fails
> ---------------------------------------------
>
>          Key: HHH-2376
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2376
>      Project: Hibernate3
>         Type: Bug

>   Components: query-hql
>     Versions: 3.2.1
>  Environment: Hibernate 3.2.1ga, HSQLDB 1.8.0.4
>     Reporter: Neukomm
>  Attachments: DiscriminatorTest2.java
>
>
> We've recently ran into a problem while migrating from Hibernate 3.1.1 to Hibernate 3.2.1ga:
> While queries against the class attribute still work, if the class is non-qualified, the query fails if the
> name is fully qualified.
> e.g. 
> "from Person p where p.class = Person" 
> works fine while 
> "from Person p where p.class = org.hibernate.test.discriminator.Person"
> fails.
> I've attached a test case to illustrated the problem. It should work when it's put into the
> 'discriminator' package of the hibernate junit test cases.
> Both testcases work fine for hibernate versions up to and including 3.2.0cr2.
> In later versions, specifically in 3.2.1ga, the test case that uses the fully qualified class name
> ('testQueryWithPackage') fails.

-- 
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.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list