-
Notifications
You must be signed in to change notification settings - Fork 617
Remove o.s.d.annotation.Persistent
from the set of identifying annotations.
#2133
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
Hi. Thanks for the report and sorry for the issues. Can you please share
Thanks. |
Hi, here is the configuration class: (I hope this is what you wanted) :
And here is the stack trace:
Please let me know if you need anything else. |
Hi. I can reproduce the issue. It is somewhat related to spring-projects/spring-boot#25069 While the bean in the Boot issue is not a valid In the mean time, I recommend to set this
It will disable the Neo4j repository but still give you
|
o.s.d.annotation.Persistent
from the set of identifying annotations.
…fying annotations. This removes `@Persistent` from the set that is used as so called identifying annotations inside the repository configuration. This change makes the process of identifying a repository as Neo4j repository more strict: While it doesn't change anything in a single store scenario - repository is selected by the entity being managed and that is still `@Persistent` - it will fix missidentifying a repository of another store as elligable for being a Neo4j repository. This fixes #2133.
I encountered an issue while working with multiple data sources.
I just upgraded from the old Spring SDN/RX to spring-boot-starter-data-neo4j 2.4.0.
I have multiple data providers from Mongo, and I use Neo4j on the side for other operations non-repositories related.
On my main class, I have the following annotations:
If I remove the
@EnableReactiveNeo4jRepositories
line, every Repository in my project will be marked as Neo4j repository and the build will crash. I do not want to enable neo4j repositories at all, but am forced to make it look in an inexistent package for the project to work.Is this by design ? Am I missing something obvious ?
The text was updated successfully, but these errors were encountered: