sockeqwe / sqlbrite-dao

DAO for SQLBrite
http://hannesdorfmann.com/android/sqlbrite-dao
Apache License 2.0
182 stars 22 forks source link

Boolean Type not supported #10

Closed harinair closed 9 years ago

harinair commented 9 years ago

Hannes:

This can be handled easily in Dao. Normally we store a Java boolean as number in the table. Hence assume that the field will be defined as a number. Check the corresponding mapped column value: if it is 0 or null return false; otherwise true. Similarly a true is saved as 1 and false is saved as 0.

harinair commented 9 years ago

Closing this since I forgot that I added another...