Author: jcosta(a)redhat.com
Date: 2009-04-21 09:38:33 -0400 (Tue, 21 Apr 2009)
New Revision: 16379
Modified:
entitymanager/branches/v3_3_2_GA_CP/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. For branch v3_3_2_GA_CP
Modified:
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java
===================================================================
---
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java 2009-04-21
13:38:14 UTC (rev 16378)
+++
entitymanager/branches/v3_3_2_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java 2009-04-21
13:38:33 UTC (rev 16379)
@@ -334,7 +334,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() );