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
Cannot convert List<> of custom class to String in Objectbox #481
Comments
It looks like a good workaround for this issue is to specify a type of |
Maybe we can detect the |
The processor correctly ignores Will add those now and work on fix. |
Alright, added tests and built fix. This should be released with the next preview (or final) release of Please re-open if the next release does not fix this issue. |
Try with 2.0.0-beta2 |
- objectbox/objectbox-java#481 - Extract and add transformer converter tests.
- objectbox/objectbox-java#481 - Extract and add transformer converter tests.
Hey guys, I love your project! I'm having trouble getting this to work though. I can't seem to figure out what I'm doing wrong, which is making me wonder if it's a bug.
Issue Basics
1.5.0
Reproducing the bug
I have a custom entity class that has two lists of another custom class. I defined a converter for each of those lists to convert the list into a JSON string using Gson. When I attempt to build the project, I'm given the error message
Cause: cannot find constructor io.objectbox.relation.ToMany(com.stoicapps.roll4initiative.models.Encounter,io.objectbox.Property)
.Code
So the class with the lists is the Encounter class:
Here's the Creature class:
Here's the converter for the lists in the Encounter class:
Let me know if you need to see anything else.
Logs & stackstraces
Here's the full stack trace:
Misc
There isn't anything special about my app, especially with what I'm trying to do here.
The text was updated successfully, but these errors were encountered: