Okay thanks. I guess I will stick with what I'm doing for now. I was
just hoping to be able to use the built in android data types wherever
possible. I am working the the GPS and maps, so I was hoping to avoid
converting my 'custom' address class to the appropriate android
equivalent. Just seemed like an unnecessary step.
I also tried defining the data table config programmatically (as
opposed to with annotations), but since android.location.Address
actually extends Parcelable, there are no defined fields in the class
to base the table on. My general idea looked something like:
private DatabaseTableConfig<Address> buildAddressTableConfig() {
ArrayList<DatabaseFieldConfig> fieldConfigs = new
ArrayList<DatabaseFieldConfig>();
Field[] fields = Address.class.getFields();
for(int i = 0; i < fields.length; i++) {
// get the field name and add a new field config to the array
}
DatabaseTableConfig<Address> tableConfig = new
DatabaseTableConfig<Address>(Address.class, fieldConfigs);
return tableConfig;
}
But that's a no go. It may be possible with
Parcelable.describeContents(), but this has been a big enough headache
and I need to move on.
Thanks for the input