How to handle updating JDO class definitions on Google App Engine

Posted by Spines on Stack Overflow See other posts from Stack Overflow or by Spines
Published on 2010-01-20T17:33:26Z Indexed on 2010/04/24 16:43 UTC
Read the original article Hit count: 245

Filed under:
|
|

I'm using the Google app engine and JDO. What is the best way to update a JDO class definition without having to wipe the data store contents first?

I'm not sure if this is specific to JDO on GAE, but I noticed that when I simply change the name of one of my persistent fields from svotes to votes, an exception is thrown (java.lang.NoSuchFieldError: svotes).

I expect once my site goes live I might want to make some changes to my JDO class definitions, such as adding a field or something. Any suggestions for how to update the data definitions without having to wipe the database?

© Stack Overflow or respective owner

Related posts about jdo

Related posts about google-app-engine