You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.
I am trying to to follow the approach you suggested, but I am having issues with the types.
I have implemented a generic ColumnTypeAdapter:
public abstract class IgnoreColumnAdapter<T> implements ColumnTypeAdapter<T> {
public final T fromCursor(Cursor cursor, String columnName) {
return null;
}
public final void toContentValues(ContentValues values, String columnName, T value) {
}
}
Having this class:
public class User {
// Column needs to be ignored
public abstract UserCredentials userCredentials();
}
I have to create an specific class IgnoreUserCredentialsAdapter extends IgnoreColumnAdapter<UserCredentials> to ensure the generated code in fromCursor() has the expected type.
We have many types we would like to ignore. Is there a way to achieve this without creating an specific type for each of them?
Add support to ignore fields in the fromCursor and toContentValues implementation.
The text was updated successfully, but these errors were encountered: