We have a simple task object, currently persisted using JDO (using App Engine, of course). We'd like to add a GREEN/YELLOW/RED status enum state. Defining the enum class is easy:
public enum Status { NONE("none"), GREEN("green"), YELLOW("yellow"), RED("red"); private final String label; Status(String label) { this.label = label; } public String getLabel() { return label; } } We're stumped how to make this class persistent using JDO -- foreign keys for the labels, perhaps? Or do we get it for free, perhaps by JDO storing the enum ordinal? Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---