As a workaround, avoid primitives; use, for example, Integer instead. Then in
your getter, return its value as a primitive, and also check to see if it's
null, and if so, set it to whatever default you prefer.
public final class Zzz {
Integer number;
public int getNumber() {
Once more time, DataNucleus (as per http://www.datanucleus.org) treats
fields correctly. The problem is not in DataNucleus. It's in Google's
plugin, where *they* define the handling of their data.
When handling the equivalent situation in RDBMS (adding a new field,
and hence a new column in a