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 [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
-~----------~----~----~----~------~----~------~--~---