Can somebody provide an example regarding ORMLite with foreign = true
, foreignAutoRefresh = true
using android? A small project in android would be much helpful.
I am trying to create a parent child relationship where child would be provided to parent as a memberField
. Later if parent queried by eg: parent.queryForAll()
, as auto-refresh enabled need not to be queried again.
However, when I query like this I get child is null
. When enabling foreign = true
, is the id field automatically set for child or we need to set it?
Copyright Notice:Content Author:「Ajay Kumar Meher」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/8046640/need-help-regarding-ormlite-using-android-foreignautorefresh-not-working