Author: helenxu
Date: Wed Nov 28 16:39:59 2012
New Revision: 1414803
URL: http://svn.apache.org/viewvc?rev=1414803&view=rev
Log:
CMS migration
Modified:
openjpa/site/trunk/content/getting-started.mdtext
Modified: openjpa/site/trunk/content/getting-started.mdtext
URL:
http://svn.apache.org/viewvc/openjpa/site/trunk/content/getting-started.mdtext?rev=1414803&r1=1414802&r2=1414803&view=diff
==============================================================================
--- openjpa/site/trunk/content/getting-started.mdtext (original)
+++ openjpa/site/trunk/content/getting-started.mdtext Wed Nov 28 16:39:59 2012
@@ -2,7 +2,7 @@ Title: Getting started
<a name="Gettingstarted-Notes"></a>
### Notes
These instructions detail the steps required to run a give sample for a number
of different environments. You can substitute any of the directories in the
\[binary download\](binary-download\.html)
-\examples\ directory for *hellojpa* in the instructions below to run a
+\examples\ directory for __hellojpa__ in the instructions below to run a
different sample.
<a name="Gettingstarted-GettingStartedwiththeEclipse"></a>
@@ -12,29 +12,29 @@ different sample.
page and unpack it by double-clicking it.
1. Launch Eclipse (this sample was tested with Eclipse 3.2.1, but any recent
version should work).
-1. Select the *File* menu, traverse to the *New* sub-menu, and select
-*Project*.
-1. On the *Select a wizard* page, select *Java Project from Existing Ant
-Buildfile*, then click the *Next* button.
-1. Hit the *Browse* button next to the *Ant Buildfile* field, and navigate
+1. Select the __File__ menu, traverse to the __New__ sub-menu, and select
+__Project__.
+1. On the __Select a wizard__ page, select __Java Project from Existing Ant
+Buildfile__, then click the __Next__ button.
+1. Hit the __Browse__ button next to the __Ant Buildfile__ field, and navigate
to the unpacked OpenJPA zip file on the desktop, then traverse through
-*examples*, then *hellojpa*, and select the *build.xml* file and hit the
-*Open* button.
-1. Hit the *Finish* button on the wizard.
+__examples__, then __hellojpa__, and select the __build.xml__ file and hit the
+__Open__ button.
+1. Hit the __Finish__ button on the wizard.
1. A new project will open, containing the OpenJPA jar and all its
dependencies.
-1. On the *Package Explorer*, expand the top-level folder, then the
-*examples* folder, then *hellojpa*.
-1. Select the *build.xml* file in the *hellojpa* folder (note that there is
-also a *build.xml* file in the parent folder, which should not be
-selected). Right-click the *build.xml* file, and select the *Run As*
-sub-menu, then select *Ant Build*.
+1. On the __Package Explorer__, expand the top-level folder, then the
+__examples__ folder, then __hellojpa__.
+1. Select the __build.xml__ file in the __hellojpa__ folder (note that there is
+also a __build.xml__ file in the parent folder, which should not be
+selected). Right-click the __build.xml__ file, and select the __Run As__
+sub-menu, then select __Ant Build__.
1. The database will be initialized (using the stand-alone Derby database,
-which is included with the OpenJPA distribution) and the *Main.java* class
-will be run. In the *Console*, you should see the text _Hello
+which is included with the OpenJPA distribution) and the __Main.java__ class
+will be run. In the __Console__, you should see the text _Hello
Persistence!_.
1. Congratulations! You have run your first sample program using OpenJPA.
-Examine the *Main.java* example program, as well as the *Message.java*
+Examine the __Main.java__ example program, as well as the __Message.java__
entity class, play with them by adding fields and working on new
persistence operations. Have fun!
@@ -46,15 +46,15 @@ persistence operations. Have fun!
should work).
1. Download the OpenJPA binary release from the [downloads](downloads.html)
page and unpack it by double-clicking it.
-1. Launch a console, such as *cmd.exe* on Windows, *Terminal.app* on Mac, or
-*xterm* on UNIX.
+1. Launch a console, such as __cmd.exe__ on Windows, __Terminal.app__ on Mac,
or
+__xterm__ on UNIX.
1. Change directories to the Desktop, then cd to the unpacked OpenJPA
folder.
-1. cd to the *examples* subdirectory, then to the *hellojpa* subdirectory.
-1. Run *ant*, which will compile the classes and run the sample application.
+1. cd to the __examples__ subdirectory, then to the __hellojpa__ subdirectory.
+1. Run __ant__, which will compile the classes and run the sample application.
At the end of the build, you should see the text _Hello Persistence!_.
1. Congratulations! You have run your first sample program using OpenJPA.
-Examine the *Main.java* example program, as well as the *Message.java*
+Examine the __Main.java__ example program, as well as the __Message.java__
entity class, play with them by adding fields and working on new
persistence operations. Have fun!
@@ -65,36 +65,36 @@ persistence operations. Have fun!
page and unpack it by double-clicking it.
1. Launch Netbeans (this sample was tested with Netbeans 5.5, but any recent
version should work).
-1. Select the *File* menu and select *New Project*.
-1. On the *New Project* page, select Category:*General* Projects:*Java
-Project with Existing Ant Script*, then click the *Next* button.
-1. Press the *Browse* button next to the *Location* field, and navigate to
+1. Select the __File__ menu and select __New Project__.
+1. On the __New Project__ page, select Category:__General__ Projects:__Java
+Project with Existing Ant Script__, then click the __Next__ button.
+1. Press the __Browse__ button next to the __Location__ field, and navigate to
the unpacked OpenJPA directory
-1. Press the *Browse* button next to the *Build Script* field, and navigate
-to the unpacked OpenJPA directory through *examples*, then *hellojpa*, and
-select the *build.xml* file and press the *Open* button.
-1. Type a name for the project, press *Set as Main Project* and press the
-*Next* button on the wizard.
-1. Press *Next* to accept the *Build and Run Actions*.
-1. On the *Source Package Folders* page, press *Add Folder*, select the
-*examples* folder, and press *Next*.
-1. On the *Java Sources Classpath* page, press *Add JAR/Folder* and select
+1. Press the __Browse__ button next to the __Build Script__ field, and navigate
+to the unpacked OpenJPA directory through __examples__, then __hellojpa__, and
+select the __build.xml__ file and press the __Open__ button.
+1. Type a name for the project, press __Set as Main Project__ and press the
+__Next__ button on the wizard.
+1. Press __Next__ to accept the __Build and Run Actions__.
+1. On the __Source Package Folders__ page, press __Add Folder__, select the
+__examples__ folder, and press __Next__.
+1. On the __Java Sources Classpath__ page, press __Add JAR/Folder__ and select
the openjpa-x.x.x/lib/geronimo-jpa_3.0_spec-1.0.jar which contains the JPA
API classes which is used to compile against.
-1. Press *Finish*
+1. Press __Finish__
1. A new project will open, containing the OpenJPA jar and the examples
source files.
-1. On the *Package Explorer*, expand the top-level folder, then the
-*examples* folder, then *hellojpa*.
-1. Navigate to the *build.xml* file in the *hellojpa* folder (note that
-there is also a *build.xml* file in the parent folder, which should not be
-used). Right-click the *build.xml* file, and select the *Run Target*
-sub-menu, then select *run*.
+1. On the __Package Explorer__, expand the top-level folder, then the
+__examples__ folder, then __hellojpa__.
+1. Navigate to the __build.xml__ file in the __hellojpa__ folder (note that
+there is also a __build.xml__ file in the parent folder, which should not be
+used). Right-click the __build.xml__ file, and select the __Run Target__
+sub-menu, then select __run__.
1. The database will be initialized (using the stand-alone Derby database,
-which is included with the OpenJPA distribution) and the *Main.java* class
-will be run. In the *Console*, you should see the text _Hello
+which is included with the OpenJPA distribution) and the __Main.java__ class
+will be run. In the __Console__, you should see the text _Hello
Persistence!_.
1. Congratulations! You have run your first sample program using OpenJPA.
-Examine the *Main.java* example program, as well as the *Message.java*
+Examine the __Main.java__ example program, as well as the __Message.java__
entity class, play with them by adding fields and working on new
persistence operations. Have fun!