[appengine-java] Enhancing class issue using GAEJ+Spring+JPA+Cloud SQL

2012-03-01 Thread Vasu
Hi All,

I am developing an application using GAE+Java+Spring+JPA+Google CLoud SQL. 
When i retrieve the data from Database i'm getting the below error.
*org.datanucleus.exceptions.NucleusUserException: Found Meta-Data for class 
CLASS-NAME but this class is not enhanced!! Please enhance the class 
before running DataNucleus.*
*
*
Could anyone please help me to resolve the above issue.

Following is my persistence.xml file:

?xml version=1.0 encoding=UTF-8 ?
persistence xmlns=http://java.sun.com/xml/ns/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_1_0.xsd;
version=1.0

persistence-unit name=transactions-optional
providerorg.datanucleus.api.jpa.PersistenceProviderImpl/provider
properties
property name=datanucleus.NontransactionalRead value=true /
property name=datanucleus.NontransactionalWrite value=true /
property name=javax.persistence.jdbc.driver
value=com.google.appengine.api.rdbms.AppEngineDriver /
property name=datanucleus.ConnectionURL
value=jdbc:google:rdbms://INSTACE-NAME/DATABASE_NAME /

!-- property name=datanucleus.autoCreateTables value=false / --
!-- property name=datanucleus.storeManagerType value=rdbms / --
!-- property name=datanucleus.jpa.level value=JPA1 / --
!-- property name=datanucleus.jpa.addClassTransformer value=false 
/ --
/properties
/persistence-unit

/persistence


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/FLQURh227rEJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Enhancing class issue using GAEJ+Spring+JPA+Cloud SQL

2012-03-01 Thread Paul Ford
I got the same error and resolved it. I have to dig up my old code tonight
and research will let you know

On Thu, Mar 1, 2012 at 5:18 AM, Vasu srinivas.che...@gmail.com wrote:

 Hi All,

 I am developing an application using GAE+Java+Spring+JPA+Google CLoud SQL.
 When i retrieve the data from Database i'm getting the below error.
 *org.datanucleus.exceptions.NucleusUserException: Found Meta-Data for
 class CLASS-NAME but this class is not enhanced!! Please enhance the
 class before running DataNucleus.*
 *
 *
 Could anyone please help me to resolve the above issue.

 Following is my persistence.xml file:

 ?xml version=1.0 encoding=UTF-8 ?
 persistence xmlns=http://java.sun.com/xml/ns/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_1_0.xsd;
 version=1.0

 persistence-unit name=transactions-optional
 providerorg.datanucleus.api.jpa.PersistenceProviderImpl/provider
 properties
 property name=datanucleus.NontransactionalRead value=true /
 property name=datanucleus.NontransactionalWrite value=true /
 property name=javax.persistence.jdbc.driver
 value=com.google.appengine.api.rdbms.AppEngineDriver /
 property name=datanucleus.ConnectionURL
 value=jdbc:google:rdbms://INSTACE-NAME/DATABASE_NAME /

 !-- property name=datanucleus.autoCreateTables value=false / --
 !-- property name=datanucleus.storeManagerType value=rdbms / --
 !-- property name=datanucleus.jpa.level value=JPA1 / --
 !-- property name=datanucleus.jpa.addClassTransformer value=false
 / --
 /properties
 /persistence-unit

 /persistence


  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/FLQURh227rEJ.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Regards

Paul

*Paul W. Ford │ Principal*
Maven Wave Partners LLC
GTalk  +1.312.884.1051  M: +1.312.953.1664
paul.f...@mavenwave.com

Please check out our Fusion
Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for
more insights

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.