Java E Expressions: Catch Unloaded Data Before Production
Java applications have spent decades improving null handling, yet one dangerous ambiguity remains common in data-access code:
Does
nullmean the database value is NULL, or does it mean the query never loaded the property?
Those two states have completely different business meanings. Treating both as
null can make a test pass and let the wrong decision reach production.
TeaQL's generated Java E expressions now preserve three states: Value, Null, and NotLoaded. A missing preload becomes a structured exception at the point of use, while a genuine SQL NULL remains a legitimate null value.
