Are you using the Eclipse plugin? If so, what platform are you running? What version of the SDK are you using? As far as the first issue goes, are AreaType and Item also persistent classes? Also, there appears to be a bug with owned one-to-many relationships between objects of the same type, so if you're able to resolve the initial error but you don't see any entities persisted, this is the reason.
- Jason On Wed, Aug 26, 2009 at 1:10 PM, Wander <[email protected]> wrote: > > I still haven't solved the problem above, a new one turned up however. > Datanucleus keeps looping on forever as soon as I edit and save a > class. Could this be related, and how can I solve it? > > Thanks > > On Aug 26, 5:09 am, Wander <[email protected]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---
