I use ObjectBox (3.0.0) on flutter/dart to implement the database part. In an Entity, I am looking to add an enumeration type list.
enum ExampleEnum {
exampleOne,
exampleTwo,
...
}
@Entity()
class Examples {
/// ObjectBox 64-bit integer ID property, mandatory.
int id = 0;
/// List of Examples.
List<ExampleEnum> examples = [];
}
I get this warning :
[WARNING] objectbox_generator:resolver on lib/entity/examples.dart:
skipping property 'examples' in entity 'Examples', as it has an unsupported type: 'List<ExampleEnum>'
If I try to store only enumeration index in place ExampleEnum type by List i get this error :
[WARNING] objectbox_generator:resolver on lib/entity/examples.dart:
skipping property 'examples' in entity 'Examples', as it has an unsupported type: 'List<int>'
How I can store a list of enumeration type correctly in my Entity ?