当OrmliteSqliteOpenHelper获得daos时,它会发生java.sql.SQLException: Field class for 'detailCollection' must be a parameterized Collection whose generic argument is an entity class not: T
我该如何解决这个问题?这是课程的一部分。
public abstract class AbstractOrder<T> {
@ForeignCollectionField()
private Collection<T> detailCollection;
}
@DatabaseTable(tableName = Constants.TABLE_TABLEORDER)
public class TableOrderModel extends AbstractOrder<TableOrderDetailModel> {
...
}
@DatabaseTable(tableName = Constants.TABLE_CUSTOMER)
public class CustomerModel extends AbstractModel {
@DatabaseField(foreign = true, foreignAutoRefresh = true)
private TableOrderModel tableOrder;
}