|
From: <hib...@li...> - 2006-06-09 15:03:41
|
Author: ste...@jb...
Date: 2006-06-09 11:03:23 -0400 (Fri, 09 Jun 2006)
New Revision: 10006
Modified:
trunk/Hibernate3/test/org/hibernate/test/jpa/ql/JPAQLComplianceTest.java
Log:
another test
Modified: trunk/Hibernate3/test/org/hibernate/test/jpa/ql/JPAQLComplianceTest.java
===================================================================
--- trunk/Hibernate3/test/org/hibernate/test/jpa/ql/JPAQLComplianceTest.java 2006-06-09 14:35:09 UTC (rev 10005)
+++ trunk/Hibernate3/test/org/hibernate/test/jpa/ql/JPAQLComplianceTest.java 2006-06-09 15:03:23 UTC (rev 10006)
@@ -19,6 +19,14 @@
public static Test suite() {
return new TestSuite( JPAQLComplianceTest.class );
}
+ public void testAliasNameSameAsUnqualifiedEntityName() {
+ Session s = openSession();
+ s.beginTransaction();
+ s.createQuery( "select item from Item item" ).list();
+ s.createQuery( "select item from Item item where item.name = 'a'" ).list();
+ s.getTransaction().commit();
+ s.close();
+ }
public void testNoSelectClause() {
Session s = openSession();
|