[appengine-java] Re: is not persistable

2009-09-08 Thread Jason (Google)
Make sure to close your PersistenceManager instance in getCategories(). Are you seeing the original error or a different stack trace? - Jason On Sun, Sep 6, 2009 at 7:06 AM, Bob L. bob.net2...@gmail.com wrote: Oh mine! It occurred again. JDO looks quite fragile. Is there any wrong with

[appengine-java] Re: is not persistable

2009-09-06 Thread Bob L.
Oh mine! It occurred again. JDO looks quite fragile. Is there any wrong with following code? @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Category { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id;

[appengine-java] Re: is not persistable

2009-09-06 Thread datanucleus
Oh mine! It occurred again. JDO looks quite fragile. Nothing fragile about the persistence process. You simply have to define your classes as persistent and enhance them, and have the enhanced ones in the CLASSPATH. Not hard --~--~-~--~~~---~--~~ You received

[appengine-java] Re: is not persistable

2009-09-01 Thread Bob L.
What a shame! I forgot this line on the class: @PersistenceCapable (identityType = IdentityType.APPLICATION) Thx. On Sep 1, 10:20 pm, Bob L. bob.net2...@gmail.com wrote: 1. It is in CLASSPATH as all classes are in the project. 2. I basically copied from the example, so it should not be a

[appengine-java] Re: is not persistable

2009-08-31 Thread datanucleus
The class The class x.Category 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. And when you've checked