You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2007/08/25 22:44:43 UTC
svn commit: r569733 - /cayenne/sandbox/cayenne-jpa-tutorial/README.txt
Author: aadamchik
Date: Sat Aug 25 13:44:42 2007
New Revision: 569733
URL: http://svn.apache.org/viewvc?rev=569733&view=rev
Log: (empty)
Modified:
cayenne/sandbox/cayenne-jpa-tutorial/README.txt
Modified: cayenne/sandbox/cayenne-jpa-tutorial/README.txt
URL: http://svn.apache.org/viewvc/cayenne/sandbox/cayenne-jpa-tutorial/README.txt?rev=569733&r1=569732&r2=569733&view=diff
==============================================================================
--- cayenne/sandbox/cayenne-jpa-tutorial/README.txt (original)
+++ cayenne/sandbox/cayenne-jpa-tutorial/README.txt Sat Aug 25 13:44:42 2007
@@ -1,6 +1,7 @@
RUNNING THE TUTORIAL:
+=====================
-1. Get needed jars
+1. NEEDED JARS
(note that tutorial project includes them already, so the list below is given for the reference)
* cayenne-server.jar
@@ -11,15 +12,21 @@
* asm-commons.jar
* all Cayenne distro "third-party/" jars
-2. Set desired Derby DB location in "persistence.xml" and "sql/derbydb.sql" files.
+2. Import Tutorial project in Eclipse.
-3. Create test Derby database, use Derby "ij" client tool (again, the example is tested on Derby 10.3.1.4):
+3. Set desired Derby DB location in "persistence.xml" and "sql/derbydb.sql" files.
-$ export DERBY_HOME=[path to derby]
-$ export PATH=$DERBY_HOME/bin:$PATH
-$ ij cayenne-jpa-tutorial/sql/derbydb.sql
+4. Create test Derby database, use Derby "ij" client tool (again, the example is tested on Derby 10.3.1.4):
-4. Run the tutorial from Eclipse. In the "Arguments" tab of the "Run" panel set the following VM argument
-(edit for the proper agent jar location):
+ $ export DERBY_HOME=[path to derby]
+ $ export PATH=$DERBY_HOME/bin:$PATH
+ $ ij cayenne-jpa-tutorial/sql/derbydb.sql
--javaagent:/path/to/cayenne-jpa-tutorial/lib/cayenne-agent-3.0-SNAPSHOT.jar
\ No newline at end of file
+5. Run the tutorial from Eclipse:
+
+ * Main class is 'cayenne.jpa.tutorial.Main'
+ * In the "Arguments" tab of the "Run" panel set the following VM argument (edit for the proper agent jar location):
+
+ -javaagent:/path/to/cayenne-jpa-tutorial/lib/cayenne-agent-3.0-SNAPSHOT.jar
+
+
\ No newline at end of file