[hibernate-commits] Hibernate SVN: r16489 - branches/Branch_3_2/HibernateExt/entitymanager/src/test/org/hibernate/ejb/test.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Thu Apr 30 07:51:02 EDT 2009


Author: jcosta at redhat.com
Date: 2009-04-30 07:51:02 -0400 (Thu, 30 Apr 2009)
New Revision: 16489

Modified:
   branches/Branch_3_2/HibernateExt/entitymanager/src/test/org/hibernate/ejb/test/QueryTest.java
Log:
EJB-403 - Removed alias from native update statement, as it is not supported in many databases.

Modified: branches/Branch_3_2/HibernateExt/entitymanager/src/test/org/hibernate/ejb/test/QueryTest.java
===================================================================
--- branches/Branch_3_2/HibernateExt/entitymanager/src/test/org/hibernate/ejb/test/QueryTest.java	2009-04-30 11:48:05 UTC (rev 16488)
+++ branches/Branch_3_2/HibernateExt/entitymanager/src/test/org/hibernate/ejb/test/QueryTest.java	2009-04-30 11:51:02 UTC (rev 16489)
@@ -51,7 +51,7 @@
 
 	public void testParameterList() throws Exception {
 		final Item item = new Item( "Mouse", "Micro$oft mouse" );
-		final Item item2 = new Item( "Computer", "D€ll computer" );
+		final Item item2 = new Item( "Computer", "D�ll computer" );
 
 		EntityManager em = getOrCreateEntityManager();
 		em.getTransaction().begin();
@@ -120,7 +120,7 @@
 
 	public void testEscapeCharacter() throws Exception {
 		final Item item = new Item( "Mouse", "Micro_oft mouse" );
-		final Item item2 = new Item( "Computer", "D€ll computer" );
+		final Item item2 = new Item( "Computer", "D�ll computer" );
 
 		EntityManager em = getOrCreateEntityManager();
 		em.getTransaction().begin();
@@ -331,7 +331,7 @@
 
 		assertEquals(
 				1, em.createNativeQuery(
-				"update Item i set i.descr = 'Logitech Mouse' where i.name = 'Mouse'"
+				"update Item set descr = 'Logitech Mouse' where name = 'Mouse'"
 		).executeUpdate()
 		);
 		item = em.find( Item.class, item.getName() );




More information about the hibernate-commits mailing list