The persistence dependencies are in appfuse-data-common's pom.xml. The
hardest part of upgrading is it doesn't seem like there's a 2.0 version of
the dependencies in Maven's repo. In an ideal world, you could simply do the
following in your core/pom.xml:
<dependency>
<groupId>javax.persistence</groupId>
<artifactId>persistence-api</artifactId>
<version>2.0</version>
</dependency>
But it doesn't work. You might try downloading the JAR yourself and
installing it or use something like the following tutorial and exclude the
above dependency.
http://paulszulc.wordpress.com/2010/01/09/jpa-2-0-and-spring-3-0-with-maven/
Hope this helps,
Matt
On Wed, Sep 22, 2010 at 6:21 PM, jackalista <[email protected]> wrote:
>
> OK, this stuff is in java persistence 2.0, we're using 1.0, but I didn't
> see
> any reference to it in either the top level pom.xml or the core pom.xml
> (I'm
> using a modular archetype).
>
> I would much rather stick to the javax.persistence.* annotations. Will all
> hell break loose if I do upgrade to 2.0? I'd think not, it looks like
> there
> were mostly additions rather than changes... Anybody know how I can pull
> in
> the 2.0 version?
> --
> View this message in context:
> http://appfuse.547863.n4.nabble.com/mapping-List-String-tp2549056p2551254.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>