Hi, I am trying to store tree like structure where nodes are defined
like that
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ServerNode implements IsSerializable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
@Persistent
String text;
@Persistent
List<ServerNode> list;
public Key getKey() {
return key;
}
public void setKey(Key key) {
this.key = key;
}
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public List<ServerNode> getList() {
return list;
}
public void setList(List<ServerNode> list) {
this.list = list;
}
}
Not sure if it relates to
http://groups.google.com/group/google-appengine-java/browse_thread/thread/25460c90f2586b65
I find that topic when I searched for my exception
java.lang.ClassCastException: oid is not instanceof
javax.jdo.identity.ObjectIdentity
at test03.server.ServerNode.jdoCopyKeyFieldsFromObjectId
(ServerNode.java)
Is there some example where I can see how to store trees?
Regards, Max
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---