Criteria is not working consistently with HQL

Description

Assume, that HibernateTest sets correct environment for Spring and hibernate and I have this test:

CriteriaBug.java

hqlTest() works as expected - it throws QuerySyntaxException: MyClass is not mapped [from MyClass], but criteriaListTest() ends with empty list instead of throwing exception and also criteriaCountTest() returns null.

Environment

Win7, Oracle 10g

Assignee

Unassigned

Reporter

Betlista

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Critical
Configure