1

We've been using JPA 1.0 for some time now. We want to move ahead to JPA 2.0. How can this be done?

Ravindranath Akila
  • 209
  • 3
  • 35
  • 45
  • The person who decided to down-vote this has no idea that it is extremely hard to find at least a mailing list entry on this. Migration is a very common occurrance and migration between two standards, the latter being an upgrade of the former, is very common. I believe a reason to down-vote should've been given. – Ravindranath Akila Nov 24 '12 at 19:18

2 Answers2

4

You could do worse than to read the migration guide from OpenJPA and then ask a more specific question.

hd1
  • 33,938
  • 5
  • 80
  • 91
0

We changed the version name and xsd as the following:

<?xml version="1.0" encoding="UTF-8" ?>
<persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
             version="2.0" xmlns="http://java.sun.com/xml/ns/persistence">

Which worked fine.

Please mention in comments if you think additional things need to be done and I will update this answer.

Ravindranath Akila
  • 209
  • 3
  • 35
  • 45