Joining classes in ORMLite for Android throws SQL exception: could not find a foreign class or vice versa
问题 I'm trying to create a join query using QueryBuilder for two different classes, a Product class and a Coupon class, that references a Product attribute, the storeId . public class Coupon { @DatabaseField(columnName = TableColumns.PRODUCT, foreign = true, foreignColumnName = Product.TableColumns.STOREID) private Product product; } public class Product { @DatabaseField(columnName = TableColumns.ID, generatedId = true) private Integer id; @DatabaseField(columnName = TableColumns.STOREID, index =