2023-05-28

flutter floor floor_generator There are no entities added to the database annotation

I have created the floor entities and DAOs but when i run

flutter packages pub run build_runner build --delete-conflicting-outputs  

i got the following error

There are no entities added to the database annotation. package:storeapp/database/myAppDatabase.dart:74:16 ╷ 74 │ abstract class MyAppDatabase extends FloorDatabase {} │

but i added the entities as following

@Database(version: 1, entities: [
  Account,
  AccountingClass,
  LocalizedProperty,
  PointOfSale,
  StoreCurrencyMapping,
  User,
  InventoryTransaction,
  JournalVoucher,
  JournalVoucherEntry,
  JournalVoucherEntryDetail,
  BaseObject,
  StoreCustomer,
  StoreEmployee,
  StoreVendor,
  Store,
  Warehouse,
  Category,
  Product,
  ProductCategory,
  StoreProductMapping,
  Order
])


No comments:

Post a Comment