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

how can I upgrade with latest spring boot version #13

Open
bhumikat opened this issue Nov 23, 2020 · 0 comments
Open

how can I upgrade with latest spring boot version #13

bhumikat opened this issue Nov 23, 2020 · 0 comments

Comments

@bhumikat
Copy link

bhumikat commented Nov 23, 2020

I want to use this repo with latest spring boot version 2.3.5.RELEASE.. It give some compile time error due to some refactoring with upgraded version. This is one compiler issue https://stackoverflow.com/questions/64963585/how-to-create-persistententityinformation-object?noredirect=1#comment114852341_64963585
As PersistableEntityInformation and ReflectionEntityInformation both are removed with latest version.
I don't find any way to use PersistentEntityInformation instead into createEntityInformation()

@SuppressWarnings("unchecked")
private EntityInformation<T, ID> createEntityInformation() {
Class entityType = (Class) GenericTypeResolver.resolveTypeArguments(
getClass(), BaseJdbcRepository.class)[0];

    if (Persistable.class.isAssignableFrom(entityType)) {
        return new PersistableEntityInformation(entityType);
    }
    return new ReflectionEntityInformation(entityType);
}
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

No branches or pull requests

1 participant