mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Fix problem with new primitive field in JDO - see http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Object_Fields_and_Entity_Properties
This commit is contained in:
@@ -33,7 +33,7 @@ public class DeviceInfo {
|
||||
private String deviceRegistrationID;
|
||||
|
||||
@Persistent
|
||||
private boolean debug;
|
||||
private Boolean debug;
|
||||
|
||||
public DeviceInfo(Key key, String deviceRegistrationID) {
|
||||
this.key = key;
|
||||
@@ -41,11 +41,11 @@ public class DeviceInfo {
|
||||
}
|
||||
|
||||
public boolean getDebug() {
|
||||
return debug;
|
||||
return debug != null ? debug.booleanValue() : false;
|
||||
}
|
||||
|
||||
public void setDebug(boolean debug) {
|
||||
this.debug = debug;
|
||||
this.debug = new Boolean(debug);
|
||||
}
|
||||
|
||||
public Key getKey() {
|
||||
|
||||
Reference in New Issue
Block a user