gusgogar / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

JPA 2 when? javax.persistence.criteria.Selection not found #226

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

I am using Spring Data JPA on Google App engine.

I am getting javax.persistence.criteria.Selection not found. Please let me know 
when will GAE upgraded to use JPA2.

Thanks

Original issue reported on code.google.com by mailtomo...@gmail.com on 20 Feb 2011 at 1:50

GoogleCodeExporter commented 9 years ago
I'm wondering how you get Spring Data JPA loaded on the AppEngine...? I get the 
following (also because of JPA1 vs. JPA2):

java.lang.NoSuchMethodError: 
javax.persistence.EntityManager.getMetamodel()Ljavax/persistence/metamodel/Metam
odel;
at 
org.springframework.data.jpa.repository.utils.JpaClassUtils.getMetadata(JpaClass
Utils.java:97)
at 
org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getEntityIn
formation(JpaRepositoryFactory.java:162)
at 
org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRe
pository(JpaRepositoryFactory.java:91)
at 
org.springframework.data.jpa.repository.support.JpaRepositoryFactory.getTargetRe
pository(JpaRepositoryFactory.java:72)
at 
org.springframework.data.repository.support.RepositoryFactorySupport.getReposito
ry(RepositoryFactorySupport.java:132)
at 
org.springframework.data.repository.support.RepositoryFactoryBeanSupport.getObje
ct(RepositoryFactoryBeanSupport.java:107)
at 
org.springframework.data.repository.support.RepositoryFactoryBeanSupport.getObje
ct(RepositoryFactoryBeanSupport.java:36)
at 
org.springframework.beans.factory.support.FactoryBeanRegistrySupport$2.run(Facto
ryBeanRegistrySupport.java:133)

Original comment by jonloru...@gmail.com on 3 Apr 2011 at 3:57

GoogleCodeExporter commented 9 years ago
I think the original poster had tried an ealier milestone that didn't use the 
JPA metamodel for getting entity information yet. We introduced the usage of 
that abstraction to support XML mapped entities as well and are thus failing a 
bit earlier now. I'd be interested in a roadmap for that as well as it is bit 
of a pity given that version 2.0 has been available for over a year now already 
and contains major improvements over the 1.0 release.

Cheers,
Ollie

-- Spring Data JPA project lead

Original comment by oliver.gierke@me.com on 3 Apr 2011 at 11:26

GoogleCodeExporter commented 9 years ago
I am also getting this error. Is there a fix to it?

Original comment by cyuan0...@gmail.com on 3 May 2011 at 3:56

GoogleCodeExporter commented 9 years ago

Original comment by googleco...@yahoo.co.uk on 26 Jun 2011 at 6:02

GoogleCodeExporter commented 9 years ago
I guess this is working now? I am looking for examples or tutorials all over 
the net but couldnt find any...

Original comment by atzb...@gmail.com on 29 May 2012 at 8:32

GoogleCodeExporter commented 9 years ago
You're looking for an example ? This is standard JPA, so perhaps just look at 
the JPA spec

Original comment by googleco...@yahoo.co.uk on 3 Jun 2012 at 4:50