Skip to content
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

fix: multiple instances of the same repository class #1302

Merged
merged 1 commit into from
May 14, 2018

Commits on May 14, 2018

  1. fix: multiple instances of the same repository class

    Fix DefaultCrudRepository to re-use legacy juggler Models across
    all instances of the same Repository class.
    
    Before this change, each call of DefaultCrudRepository constructor
    was redefining the backing persisted model.
    
    This commit adds a caching mechanism to DefaultCrudRepository:
    when setting up a backing model, we check datasource's modelBuilder
    registry to find if the backing model was not already created by
    an older instance of the repository.
    bajtos authored and raymondfeng committed May 14, 2018
    Configuration menu
    Copy the full SHA
    0a1f960 View commit details
    Browse the repository at this point in the history