0

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

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

Rob Baillie
  • 3,436
  • 2
  • 20
  • 34
周鹏飞
  • 1
  • 1

1 Answers1

1

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

AlexS
  • 5,295
  • 3
  • 38
  • 54