agrosner / DBFlow

A blazing fast, powerful, and very simple ORM android database library that writes database code for you.
MIT License
4.87k stars 598 forks source link

Extending library's BaseData can't generate table #1685

Closed wangsuicheng closed 3 years ago

wangsuicheng commented 5 years ago

DBFlow Version: 4.2.2

Description: In the sdk-library, I have a BaseData extends BaseModel, and in app dir, I write a Metadata extends BaseData, and starting build app ,it failed, can't genereate table by extending library's BaseData class ?

agrosner commented 3 years ago

You cannot extend other module classes without using @InheritedColumn most likely https://dbflow.gitbook.io/dbflow/v/develop/usage2/usage/models#inherited-columns

This is because each module is its own compilation unit and annotation processors do not traverse all at once.