pinchbv / floor

The typesafe, reactive, and lightweight SQLite abstraction for your Flutter applications
https://pinchbv.github.io/floor/
Apache License 2.0
947 stars 190 forks source link

can not generate code without @ignore metadata #787

Open pitilesslove opened 10 months ago

pitilesslove commented 10 months ago

simple examples

// it's from domain layer. (have not to use data layer library) class NoteBookModel { final String title; final int? totalPage; final List? subTitles; final Url? thumbnailImg; }

@Entity(tableName: 'notebook', primaryKeys: ['title']) class NoteBookEntity extends NoteBookModel { @override @TypeConverters([SubTitleListConverter]) final List? subTitles; @override @ignore final Url? thumbnailImg; }

I don't want to put @ignore metadata in the Model, but Otherwise, the example entity will not be generated properly.