Thanks for both your responses.

Sure I know I can save null values with custom queries. In fact, my code is 
already adapted to invoke framework's method (eg : update/save/find), so I 
don't use custom query (and prefer don't use it).

When I initialize my database, Integer/Long column contains NULL values. I 
retrieve object with getById(long id) method (that invoke unmap method) and 
it's there that the field with null value return 0 instead. So I can't 
distinguish a field that really have "0" value. (Some of my fields doesn't 
need the 0 value but others need).

Shai : I've already thinking of using String but it requires that I modify 
all my code (that's pretty huge). Moreover, I will have to implement 
special interface to treat such kind of field.


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9aa5664b-1d7d-497c-8ba9-c786cbfd0a3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to