Default value for int in OrmLite Android

Viewed 2754

I'm wondering how I can set the defualt value for an int in a DatabaseField in OrmLite for Android.

I have tried:

@DatabaseField(defaultValue = 0) 
int intValue;  

But all I get is a compilation error. Or can you even do this with int's?

3 Answers
Related