cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnth...@apache.org
Subject svn commit: r1422323 - /cayenne/main/trunk/tutorials/tutorial-rop-client/src/main/java/org/apache/cayenne/tutorial/persistent/client/Main.java
Date Sat, 15 Dec 2012 19:29:58 GMT
Author: johnthuss
Date: Sat Dec 15 19:29:57 2012
New Revision: 1422323

URL: http://svn.apache.org/viewvc?rev=1422323&view=rev
Log:
And fix the ROP tutorial build too

Modified:
    cayenne/main/trunk/tutorials/tutorial-rop-client/src/main/java/org/apache/cayenne/tutorial/persistent/client/Main.java

Modified: cayenne/main/trunk/tutorials/tutorial-rop-client/src/main/java/org/apache/cayenne/tutorial/persistent/client/Main.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/tutorials/tutorial-rop-client/src/main/java/org/apache/cayenne/tutorial/persistent/client/Main.java?rev=1422323&r1=1422322&r2=1422323&view=diff
==============================================================================
--- cayenne/main/trunk/tutorials/tutorial-rop-client/src/main/java/org/apache/cayenne/tutorial/persistent/client/Main.java
(original)
+++ cayenne/main/trunk/tutorials/tutorial-rop-client/src/main/java/org/apache/cayenne/tutorial/persistent/client/Main.java
Sat Dec 15 19:29:57 2012
@@ -78,12 +78,12 @@ public class Main {
 
 	static void selectTutorial(ObjectContext context) {
 		// SelectQuery examples
-		SelectQuery<Painting> select1 = SelectQuery.from(Painting.class, null);
+		SelectQuery<Painting> select1 = SelectQuery.query(Painting.class, null);
 		List<Painting> paintings1 = context.performQuery(select1);
 
 		Expression qualifier2 = ExpressionFactory.likeIgnoreCaseExp(
 				Painting.NAME_PROPERTY, "gi%");
-		SelectQuery<Painting> select2 = SelectQuery.from(Painting.class, qualifier2);
+		SelectQuery<Painting> select2 = SelectQuery.query(Painting.class, qualifier2);
 		List<Painting> paintings2 = context.performQuery(select2);
 	}
 
@@ -91,7 +91,7 @@ public class Main {
 		// Delete object examples
 		Expression qualifier = ExpressionFactory.matchExp(Artist.NAME_PROPERTY,
 				"Pablo Picasso");
-		SelectQuery<Artist> selectToDelete = SelectQuery.from(Artist.class, qualifier);
+		SelectQuery<Artist> selectToDelete = SelectQuery.query(Artist.class, qualifier);
 		Artist picasso = (Artist) Cayenne.objectForQuery(context,
 				selectToDelete);
 



Mime
View raw message