I am running the following JDO code on an app engine server.
I am getting the following error message:
org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: The class "The class "java.util.ArrayList" is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data/annotations for the class are not found." is not persistable. This means that it either hasnt been enhanced, or that the enhanced version of the file is not in the CLASSPATH (or is hidden by an unenhanced version), or the Meta-Data for the class is not found.
Here is my class:
@PersistenceCapable(detachable="true")
class Store {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
@Persistent
@Element(dependent = "true")
private List<User> users;
List<User> getUsers() {
return users;
}
}
When I run
pm.makePersistent(store.getUsers());
I get the above exception. Any idea as to why this is happening? I thought the documentation stated I could have a List<> as a persistent element and that it would turn into a multivalued property.
Thanks,
John Goche