Skip to content

Model generator issues & improvements #74

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

Merged
merged 8 commits into from
Nov 25, 2019
Merged

Model generator issues & improvements #74

merged 8 commits into from
Nov 25, 2019

Conversation

vaind
Copy link
Contributor

@vaind vaind commented Nov 19, 2019

This PR improves various aspects of the generator and the generated code as well as fixes some issues with how model is built in ObjectBox core (last-...-id)

Fixes #56

Though it still uses the JSON to limit the amount of generator and model code we have to maintain, it now does load it entity by entity, so the code is cleaner.

Fixes #38

One can now use GENERATOR=update-expected pub run test in the generator directory to update the expected test files.

Fixes #40

Non-issue but I've added a test case to cover a potential regression in the future.

From #55

The generator already handled multiple files (added a test case for that). However, it didn't create a single "ModelInfo" so user can't really load them properly. There's a follow up PR with major generator changes fixing this issue: #76

@vaind vaind force-pushed the 56-generated-model branch from a0868e0 to 8f836ae Compare November 19, 2019 15:23
@vaind vaind mentioned this pull request Nov 21, 2019
3 tasks
@vaind vaind changed the title WIP: Model generator issues & improvements Model generator issues & improvements Nov 25, 2019
@vaind vaind merged commit a614da9 into dev Nov 25, 2019
@vaind vaind deleted the 56-generated-model branch November 25, 2019 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant