Author: stliu
Date: 2010-05-08 08:25:15 -0400 (Sat, 08 May 2010)
New Revision: 19421
Modified:
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/join/JoinTest.java
Log:
replace Expression.eq with Restrictions.eq because of EXpression is depreated
Modified:
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/join/JoinTest.java
===================================================================
---
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/join/JoinTest.java 2010-05-08
12:05:48 UTC (rev 19420)
+++
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/join/JoinTest.java 2010-05-08
12:25:15 UTC (rev 19421)
@@ -9,7 +9,7 @@
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
-import org.hibernate.criterion.Expression;
+import org.hibernate.criterion.Restrictions;
import org.hibernate.mapping.Join;
import org.hibernate.test.annotations.TestCase;
@@ -107,7 +107,7 @@
s = openSession();
tx = s.beginTransaction();
Criteria crit = s.createCriteria( Life.class );
- crit.createCriteria( "owner" ).add( Expression.eq( "name",
"kitty" ) );
+ crit.createCriteria( "owner" ).add( Restrictions.eq( "name",
"kitty" ) );
life = (Life) crit.uniqueResult();
assertEquals( "Long long description", life.fullDescription );
s.delete( life.owner );