OK, but it does not work with GAE. My persistence.xml contains <property
name="javax.jdo.PersistenceManagerFactoryClass"
value="org.datanucleus.jdo.JDOPersistenceManagerFactory"/>, but
following exception is thrown:
javax.jdo.JDOFatalUserException: A property named
javax.jdo.PersistenceManagerFactoryClass must be specified, or a jar file with
a META-INF/services/javax.jdo.PersistenceManagerFactory entry must be in the
classpath, or a property named javax.jdo.option.PersistenceUnitName must be
specified.
Is there another way to do it?
Dne 24.3.2010 18:29, datanucleus napsal(a):
Where can I find way to specify the class list? I have found
http://www.datanucleus.org/products/accessplatform_1_0/jpa/persistenc...
, but it is for persistence.xml and JPA.
And this
http://www.datanucleus.org/products/accessplatform_1_1/jdo/persistence_unit.html
which is for JDO, and persistence.xml
"jdoconfig.xml" doesn't define classes lists; JDO has its own auto-
detaction mechanism for finding classes, utilising the positioning of
package.jdo files in the CLASSPATH.
"persistence.xml" allows you to hardcode your list of classes since
JPA has no better way of doing it.
--
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 [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-java?hl=en.