GreenDao why using Integer instead of int?

325 Views Asked by At

I want to know that why greendao uses Integer instead of int?

I find that ExampleDaoGenerator generator the entity int field are all Integer.

1

There are 1 best solutions below

0
On

Integer is used for fields that may be NULL. For properties configured with notNull() int should be used.