-
Notifications
You must be signed in to change notification settings - Fork 45
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
go generate fails due to missing entity #23
Comments
So you're trying to save data from some 3rd party library. As expected, that library doesn't have the expected model annotations, namely the problem is with
ObjectBox-Go thinks |
Could you explain what you're trying to achieve? What data do you want to store? How do you intend to read/query the data? We have done some custom handling of a pre-defined model here for EdgeX https://github.com/objectbox/edgex-objectbox/tree/fuji/internal/pkg/db/objectbox but that may be an overkill for your use-case |
I had planned on storing |
Unfortunately, that's not gonna work without some custom handling similar to the EdgeX example I've linked above. We've opted for a better-safe-than-sorry approach in ObjectBox-Go of not skipping unknown fields but failing the generation altogether, with user being able to either fix the time or skip them explicitly by tagging with |
Understood - if you want to close this issue since it's a "can't/won't fix", that's fine. |
Hey @vaind , I am a somewhat newcomer in golang, and was going to try ObjectBox for our project, which heavily relies on 3rd party packages and their types to be stored. Did I get it right, that for such cases, ObjectBox is not a good option, because it is not easy/straightforward to store 3rd party types in the db, because we can't annotate them properly? |
Reproducer here:
https://github.com/jpeeler/objectbox-test
I don't understand the failure as
Credential
is present in the same file asInstitution
, which is clearly found.Copied output from commit:
The text was updated successfully, but these errors were encountered: