Hi all,
I'm new to GAE, and i'm trying to migrate an application from tomcat/
hibernate/mysql to GAE/JPA.
One of my problem rose at runtime when creating an EntityManager.
Here the exception :
javax.persistence.PersistenceException: Provider error. Provider:
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider
at javax.persistence.Persistence.createFactory(Persistence.java:176)
at javax.persistence.Persistence.createEntityManagerFactory
(Persistence.java:112)
at javax.persistence.Persistence.createEntityManagerFactory
(Persistence.java:66)
at testjpa.server.JpaServlet.getEMF(JpaServlet.java:31)
[...]
Caused by: org.datanucleus.metadata.InvalidMetaDataException: Class
testjpa.rpc.persist.AnBoardPosition has property hexDistance declared
in MetaData, but its getter method doesnt exist in the class!
at org.datanucleus.metadata.ClassMetaData.populateMemberMetaData
(ClassMetaData.java:495)
[...]
No 'hexDistance' property are declared in 'AnBoardPosition' but there
is a method 'public int getHexDistance(AnBoardPosition p_position)'.
adding '@Transient' annontation don't change anything.
I can change the method name to get rid of this error but:
- Why gae make such a mistake (bug ?) as this method can't be a
property ?
- Why Transient annotation don't change anything to this behavior ?
Other annotation ?
- Is there any workaround as my app have a lot of transient method
starting with getXxxx ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---