Hey...
I tried some tests with JDO and the Google App Engine. So I created a
simple object:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SuppressWarnings("serial")
public class CareerDO extends CommonData {
public CareerDO() {
}
public CareerDO(String key, Long sort) {
this.key = key;
this.sort = sort;
}
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Unique
protected Key id;
@Persistent(nullValue = NullValue.NONE)
@Index
protected String key;
@Persistent(nullValue = NullValue.NONE)
protected Long sort;
@Persistent
protected Set<Key> races = new HashSet<Key>();
}
It works fine and the Set of Keys is the reference for another object.
But what will happen when I don't longer not a field? Ok, I delete the
attributes and remove the annotation. But in my tests, the attribute
ist still alive in the database. So how does it work with a drop or
add column?
Regards,
Markus Unger
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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?hl=en.