I'm getting this error when trying to read a foreign collection from my POJO
AndroidRuntime(589): Caused by: java.lang.IllegalStateException: Internal DAO
object is null. Lazy collections cannot be used if they have been deserialized.
The offending collection is answers1
which i have marked as 'eager'
@ForeignCollectionField (eager=true)
private ForeignCollection<TextAnswer> answers1;
Why then when I debug the method below
public List<TextAnswer> getAnswers() {
return new ArrayList<TextAnswer>(answers1);
}
That it tells me the collection is a LazyForeignCollection? I am puzzled.
I have no prob with this in any of my other classes that use ForeignCollections :(