Closed ook closed 5 years ago
"Achilles will raise if the field is undefined." --> What do you mean by undefined ? Null value ?
Yes, value never written into Cassandra (as you can do for non key or non clustering fields).
So a very simple work-around:
Boolean
Optional<Boolean>
type in AchillesThank you for your answer. I guess that could make its way into a FAQ.
Hi @doanduyhai ,
When you use Achilles to map a cassandra boolean into java primitive, Achilles will raise if the field is undefined.
I'd expect it map to default java primitive value (
false
for boolean,0
for integer, etc.) I tried to workaround using a Codec but as stated in #330 undefined cassandra value doesn't trigger the Codec.