1
我在Android上使用ORMLite,并且存在以下问题: 是否可以基于单个Java类创建多个表?在ORMLite中为一个类创建2个或更多表格
这些表只应在名称上有所不同,并且应该按名称访问它们。
例如,如果我有一个类:
public class Order{
@DatabaseField
public string Name;
@DatabaseField
public string Amount;
}
我一直throught问题Create multiple tables for one class in ORMLite但我的情况下,模块不是动态
我不能因为某些原因继承像由@grey提。
@DatabaseTable
public class FooOrder extends Order {
// fields will be gotten from Order
}
@DatabaseTable
public class BarOrder extends Order {
// fields will be gotten from Order
}
请帮助我的人在具有使用相同class.Can此使用DataBasetableConfig
被achived创建2个或更多saperate表。