Correctly support NULLs on nested entity types

Nested entities need to be recursively handled, as the Java object
instance must be allocated before fetch starts and destroyed if
fetch produces NULLs.  During insert/update we need to not enter
the nested object if it is null, but instead bind all fields to
their NULL value.

Signed-off-by: Shawn O. Pearce <sop@google.com>
2 files changed