-
Notifications
You must be signed in to change notification settings - Fork 41.2k
EntityScanPackages has package-private constructor #28232
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
Comments
What are you trying to achieve and why do you think you should be creating your own instance of |
Hi, well, a lib that has entities and with this the consumer of a lib would not need to always use |
Btw after a bit of looking into it, it would be super nice to be able to merge annotations like |
It sounds like using |
I'm not quite sure if The lib itself knows where the configurations are so it would make sense to configure the defaults for it because those will be used in 98% of the cases. what im proposing is to have what is happening here is that:
The following is the setup(sry, code example would be too big and complex):
I would need another maybe for visual reference: JpaAuditTestConfiguration
EnableStorageJpa
EnableStorageAuditJpa
now, yes, i could slam the In addition to this problem, there's also |
I'm not really following the above example I'm afraid, but it won't be possible to make If you want to register additional packages for entity scanning you can use the |
This is what I'm doing, but there is no such (easy) thing for repositories. What I'm saying is that for example This is java related but still would say a bit inconsistent in spring? |
…stance Closes spring-projectsgh-28232 (cherry picked from commit eefdd2c)
Hello,
is there a reason why
EntityScanPackages
has a package-private constructor?The whole thing about entity scanning is extensible, but the class is "hindering" this?
BR
The text was updated successfully, but these errors were encountered: