Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Running the OpenJPA Examples

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).

  1. Build the openjpa binaries
    Code Block
    $ mvn clean install
    
  2. extract the binary distribution to a temporary directory
    Code Block
    $ cd openjpa-project/target/site/downloads/
    $ unzip -qq -d temp *binary*.zip
    $ cd temp/$openjpa-version/examples
    
  3. run the helloJPA sample
    Code Block
    $ cd hellojpa
    $ ant
    $ cd ..
    
  4. run the relations sample
    Code Block
    $ cd relations
    $ ant
    $ cd ..
    
  5. run the reversemapping sample
    Note

    Currently only works on unix platforms

    Code Block
    $ cd reversemapping
    $ ant
    $ cd ..