I have two classes setup like the following. I am confused as to when I need to annotate something as an foreign collection and when I do not. This may also sound silly, but n
If you want to save a Collection (such as an ArrayList) of objects to ORMLite the easiest way is this:
@DatabaseField(dataType = DataType.SERIALIZABLE) private SerializedList myObjects;
and to get my list of objects:
public List getMyObjects() { return myObjects; }