androidgreendaogreendao-generator

Android greenDAO - Primitive data types


I'd like to ask if there is a way to use primitive data types as table fields with greenDAO? If it is, code example would be appreciated.

Thanks


Solution

  • As far as I know, you can't, at least with the provided framework. In the documentation, there's the PropertyType enum, which only have objects. Maybe you could, modifying the generated code, but I'm not quite sure and it seems a lot of manual work to do.