I understand that there are limitations on Memcache vis a vis Non-
Serializable objects. Is there a way to tell what's Non-
Serializable? I've been searching but maybe its too rudimentary a
question :)
Is my class below Non-Serializable? GAE is giving me error messages
so I'm guessing it is. I'm trying work arounds but (as a noob) I
just like using the for (Location loc : locations) pattern with the
associated loc.getdeptId() functionality. Is there another pattern
like ArrayList that gives me the same thing? It doesn't appear to
but, again, see my previous "noob" comment... Thanks, John
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Location {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private Long deptId;
@Persistent
private String shortName;
@Persistent
private String longName;
@Persistent
private String type;
@Persistent
private String sequence;
public Location(Long deptId, String shortName, String longName,
String type, String sequence) {
this.deptId = deptId;
this.shortName = shortName;
this.longName = longName;
this.type = type;
this.sequence = sequence;
}
// GETS
public Long getId() {
return id;
}
etc. etc.....
--
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.