j256 / ormlite-android

ORMLite Android functionality used in conjunction with ormlite-core
http://ormlite.com/
ISC License
1.59k stars 367 forks source link

defaultValue for boolean fields #48

Closed j256 closed 8 years ago

j256 commented 9 years ago

From mattblang on SO: Neither defaultValue="1" nor defaultValue="true" seemed to work. I can set it using the setter before I create, but I was hoping to avoid this.

j256 commented 8 years ago

This is not a bug. It only works for Boolean since boolean always has a value so it won't take the default value.