-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
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
Support array types with Converter #42
Comments
Never tested converters with array types. Could you check if List is working? |
I have tested it now with |
Great, I will rename the ticket accordingly to support array types. |
It looks like even Lists aren´t working as well. Immediately after data is available (list is not null) and the object is getting inserted to the database, the database won´t return any entities anymore in any box. |
@FabianTerhorst Can you investigate a bit? Is it really related to converters? If not, please open a new ticket. |
It is. When i remove the converter annotation the app is working again. |
It is also not depending on the converter. Even when im returning a new arraylist every time the bug occur. |
@FabianTerhorst You don't have a reproducible test case you can share, I guess? |
I could try to copy it into a sample add |
While creating the converter inside the sample project i have noticed that the converter was throwing an exception that wasn´t thrown in the main app. I fixed the converter, copied the fix into the main app and everything was working how expected. |
@FabianTerhorst Alright. Was the exception swallowed, so you did not notice in the first place? |
@greenrobot yes, there was no strack trace inside the main app, just the database was not working correctly. |
@FabianTerhorst I just checked: we have unit tests to ensure exceptions from the converter are thrown from both directions ( |
Also when the put call is inside an async transaction? |
In that case TxCallback must be called with an exception. Did that happen? |
P.S.: Added a unit test for that constellation. Works as expected. |
@FabianTerhorst How did you fixed that? I have the same issue with a String Array This is my converter
|
@matecode use |
@FabianTerhorst I couldn't figure out. Please look at this question: |
Does anyone have issues with List types in 0.9.13? If so, please open a separate issue. Thanks! |
Tested using The easiest way to work around constructor-related Please submit a new issue if further issues become known. |
Im getting the following error when im query the entity that is using an converter:
The constructor:
The Entity converter usage:
The Converter Class:
The text was updated successfully, but these errors were encountered: