cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1296130 - /cayenne/main/trunk/tutorials/tutorial-rop-client/src/main/java/org/apache/cayenne/tutorial/persistent/client/Main.java
Date Fri, 02 Mar 2012 10:52:04 GMT
Author: aadamchik
Date: Fri Mar  2 10:52:04 2012
New Revision: 1296130

URL: http://svn.apache.org/viewvc?rev=1296130&view=rev
Log:
CAY-1665 Consistent and concise property names aggregated in one place

fixing tutorials

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=1296130&r1=1296129&r2=1296130&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
Fri Mar  2 10:52:04 2012
@@ -24,7 +24,7 @@ import java.util.Map;
 
 import org.apache.cayenne.Cayenne;
 import org.apache.cayenne.ObjectContext;
-import org.apache.cayenne.configuration.rop.client.ClientModule;
+import org.apache.cayenne.configuration.Constants;
 import org.apache.cayenne.configuration.rop.client.ClientRuntime;
 import org.apache.cayenne.exp.Expression;
 import org.apache.cayenne.exp.ExpressionFactory;
@@ -35,10 +35,10 @@ public class Main {
 	public static void main(String[] args) {
 
 		Map<String, String> properties = new HashMap<String, String>();
-		properties.put(ClientModule.ROP_SERVICE_URL,
+		properties.put(Constants.ROP_SERVICE_URL_PROPERTY,
 				"http://localhost:8080/tutorial-rop-server/cayenne-service");
-		properties.put(ClientModule.ROP_SERVICE_USER_NAME, "cayenne-user");
-		properties.put(ClientModule.ROP_SERVICE_PASSWORD, "secret");
+		properties.put(Constants.ROP_SERVICE_USERNAME_PROPERTY, "cayenne-user");
+		properties.put(Constants.ROP_SERVICE_PASSWORD_PROPERTY, "secret");
 
 		ClientRuntime runtime = new ClientRuntime(properties);
 



Mime
View raw message