sockeqwe/sqlbrite-dao

Boolean Type not supported

Closed this issue · 1 comments

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.

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