ForeignCollection
如何在两个活动之间发送带有 ORMLite 的对象?那ForeignCollection
是不可序列化的吗?我得到IOException
这是由于不可序列化的对象。
例如:在 My Call 课程中
@ForeignCollectionField(eager = false)
private transient ForeignCollection<CallObjective> _callObjectives;
在我的 CallObjective 类中:
@DatabaseField(columnName = "CallId", foreign = true, foreignAutoRefresh = true)
private Call _call;