Hi all
I'm trying to use the datastore in app engine (for the first time),
but I get the following warning:
javax.jdo.JDOUserException: Persistent class "com.wander.etc.etc.Area"
has no table in the database, but the operation requires it. Please
check the specification of the MetaData for this class.
This is the piece of code:
PersistenceManager manager = PMF.get().getPersistenceManager();
Area area = new Area("something",AreaType.OUTSIDE);
manager.makePersistent(area);
And this is a part of the Area class:
@PersistenceCapable(identityType=IdentityType.APPLICATION)
public class Area{
@PrimaryKey
@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
private Key key;
@Persistent
private String name;
@Persistent
private AreaType areaType;
@Persistent(mappedBy="key")
private ArrayList<Area> borderAreas;
@Persistent(mappedBy="key")
private ArrayList<Item> items;
//etc
I've searched at google for the problem, but got very few results
One of them was about adding some class information to jdoconfig.xml,
but at another page I read that this wouldnt be needed, because it's
schemaless
I'm using eclipse, got all needed plugins installed (as far as I can
see), and apart from the datastore everything seems to be working fine
, I don't get any errors in the console when deploying
Could anyone tell me what I'm doing wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---