-
Notifications
You must be signed in to change notification settings - Fork 561
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
Allow users to provide custom UriToEntityConverter #2277
base: 3.7.x
Are you sure you want to change the base?
Allow users to provide custom UriToEntityConverter #2277
Conversation
ptahchiev
commented
Jun 24, 2023
- You have read the Spring Data contribution guidelines.
- You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
- [-] You submit test cases (unit or integration tests) that back your changes.
- [-] You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).
Care to elaborate what type of customization you're looking for the |
In my company we are extending hibernate and spring-data jpa so that we can build JPA entities as interfaces so that we can extend from multiple other interfaces. Thus a JPA entity looks something like this:
and the corresponding repository looks like this:
We need a custom As a general rule I view spring and the whole ecosystem as a framework that users should be allowed to extend and plug-into, not like a library that one is supposed to just use and not touch at all. It would be a nice idea if it a bean with a |
I think we have to take a step back from suggesting changes to the implementation immediately and get on the same page what the problem is that we need to solve. I see a couple of fundamental issues with the suggested changes (as well for #2279).
I would like to start with a outside-in sample project that shows what's intended to work from a user application perspective to showcase what exactly is not working as expected. We can then debate how to best approach the problem. |