openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] OpenJPA > Running OpenJPA Examples
Date Tue, 12 Jan 2010 23:52:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=openjpa&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="http://cwiki.apache.org/confluence/display/openjpa/Running+OpenJPA+Examples">Running
OpenJPA Examples</a></h2>
    <h4>Page  <b>added</b> by             <a href="http://cwiki.apache.org/confluence/display/~michael.d.dick@gmail.com">Michael
Dick</a>
    </h4>
         <br/>
    <div class="notificationGreySide">
         <h1><a name="RunningOpenJPAExamples-RunningtheOpenJPAExamples"></a>Running
the OpenJPA Examples</h1>

<p>The examples are packaged so that they run after extracting the openjpa binary distribution.
Running directly from the source tree may take some work (not documented here). </p>

<ol>
	<li>Build the openjpa binaries
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
$ mvn clean install
</pre>
</div></div> </li>
	<li>extract the binary distribution to a temporary directory
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
$ cd openjpa-project/target/site/downloads/
$ unzip -qq -d temp *binary*.zip
$ cd temp/$openjpa-version/examples
</pre>
</div></div></li>
	<li>run the helloJPA sample
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
$ cd hellojpa
$ ant
$ cd ..
</pre>
</div></div></li>
	<li>run the relations sample
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
$ cd relations
$ ant
$ cd ..
</pre>
</div></div></li>
	<li>run the reversemapping sample
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16"
align="absmiddle" alt="" border="0"></td><td><p>Currently only works
on unix platforms</p></td></tr></table></div>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
$ cd reversemapping
$ ant
$ cd ..
</pre>
</div></div></li>
</ol>



    </div>
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="http://cwiki.apache.org/confluence/display/openjpa/Running+OpenJPA+Examples">View
Online</a>
              |
       <a href="http://cwiki.apache.org/confluence/display/openjpa/Running+OpenJPA+Examples?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
           </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message