Download a JPA implementation. This example uses [http://www.eclipse.org/eclipselink/downloads/
EclipseLink]] - version eclipselink-2.2.0.v20110202-r8913, which is the reference implementation. You will need the following two jar files in your classpath:
eclipselink.jar
javax.persistence_2.0.X.jar
Download a database. This example uses Derby - version 10.8.1.2. You will the following jar file in your classpath:
derby.jar
Follow the instructions in the tutorial as is with the following three changes.
Update the Todo class’ id filed by adding the following annotation:
Update the persistence XML to always drop and re-create the tables:
Comments