We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
If we have following model definitions
@Table class Parent { @PrimaryKey public CustomKey customKey; } @Table class Child { @PrimaryKey public long id; @Column Parent parent; } class CustomKey { // ... } @StaticTypeAdapter(targetType = CustomKey.class, serializedType = String.class) class CustomeKeyAdapter { // ... }
Generated AssociationDef should use serialized customKey by CustomeKeyAdapter, but actually it attempts to use raw customeKey like a below
AssociationDef
customKey
customeKey
class Child_Scheme { // ... public final AssociationDef<Child, Parent, Parent_Schema> parent; this.parent = new AssociationDef<Child, Parent, Parent_Schema> ... { // ... @NonNull @Override public String getSerialized(@NonNull Child model) { return model.parnet.customKey; // customKey should be serialized here by CustomeKeyAdpater!!! } // ... }; }
Whould you have any plan to support this feature? Thanks.
The text was updated successfully, but these errors were encountered:
This is definitely a bug around type adapters. I'm working in progress on it in #370.
Sorry, something went wrong.
Thanks!! 🙏
Released v4.1.1 including this fix. Thanks for the report! 🎆
No branches or pull requests
Example:
If we have following model definitions
Generated
AssociationDef
should use serializedcustomKey
by CustomeKeyAdapter, but actually it attempts to use rawcustomeKey
like a belowWhould you have any plan to support this feature?
Thanks.
The text was updated successfully, but these errors were encountered: