Port of schuchert.wikispaces.com


JPA_Tutorial_1_Initial_Setup

JPA_Tutorial_1_Initial_Setup

This example requires Java 5 (JDK 1.5) or later and Eclipse 3.2 or later. This page gives you a link to all of the downloads you’ll need to get to get started. While I might mention specific version numbers, it’s a good bet that newer versions should work as well… of course that’s not always the case.

Note: We need the jar file that contains javax.persistence and the various annotations associated with JPA. You can either download JEE or get it from somewhere else. For this series of tutorials, we eventually use the JBoss EJB3 Embeddable container, so we’ll use that to avoid an extra 150+ meg download for one jar file.

Download Everything

First the basic stuff:

Next, the libraries:

Setup the JDK & Eclipse

Extract Jar Files

Extract each of the libraries to some location. In my case I extracted everything to C:/libs, so I have the following directories

> C:/libs/hibernate-annotations-3.4.0.GA
> C:/libs/hibernate-entitymanager-3.4.0.GA
> C:/libs/hibernate-distribution-3.3.1.GA
> C:/libs/hsqldb-1.9.0-beta3
> C:/libs/openejb-3.1.1
> C:/libs/slf4j-1.5.8

Comments

" Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.