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;
|
private String deviceRegistrationID;
|
||||||
|
|
||||||
@Persistent
|
@Persistent
|
||||||
private boolean debug;
|
private Boolean debug;
|
||||||
|
|
||||||
public DeviceInfo(Key key, String deviceRegistrationID) {
|
public DeviceInfo(Key key, String deviceRegistrationID) {
|
||||||
this.key = key;
|
this.key = key;
|
||||||
@@ -41,11 +41,11 @@ public class DeviceInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean getDebug() {
|
public boolean getDebug() {
|
||||||
return debug;
|
return debug != null ? debug.booleanValue() : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDebug(boolean debug) {
|
public void setDebug(boolean debug) {
|
||||||
this.debug = debug;
|
this.debug = new Boolean(debug);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Key getKey() {
|
public Key getKey() {
|
||||||
|
|||||||
Reference in New Issue
Block a user