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

Cross Store with Rest Neo4J [DATAGRAPH-302] #865

Closed
spring-projects-issues opened this issue Sep 28, 2012 · 2 comments
Closed

Cross Store with Rest Neo4J [DATAGRAPH-302] #865

spring-projects-issues opened this issue Sep 28, 2012 · 2 comments
Labels
status: declined type: bug

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Sep 28, 2012

katat choi opened DATAGRAPH-302 and commented

I tried to change the restaurant-social sample project a bit to let it use mysql and rest neo4j instead.
It was working fine with mysql and the local store neo4j. When the local store neo4j is changed to be the rest one to be able to call the remote neo4j server, the listFriends method in the UserAccountRelationshipsTest throws the following error.
...
Caused by: org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.springone.myrestaurants.domain.UserAccount. Expected: class java.lang.Long, got class java.lang.Integer
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:135)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:1080)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:997)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:990)
at org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:610)
... 47 more

It would be great if the REST Neo4J can be supported in the cross-store environment. Embedded Neo4j is worrying me for the time beings if the project is in the real production.


Affects: 2.1.M1

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Oct 10, 2012

Michael Hunger commented

Embedded Neo4j is a valid deployment scenario.

I just looked into it, and it seems quite difficult and expensive to get the required JPA id field type from entityManager.getMetamodel().getManagedTypes(),
so we would have to cache the information. So it will not be a part of SDN 2.1 release. Hope for your understanding

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Sep 2, 2013

Michael Hunger commented

SDN Cross Store only works with Advanced Mapping Mode (aka AspectJ) it wouldn't work well over the wire as the access patterns are too fine grained. That will change when the persistence layer is evolved to use Cypher over the network

@spring-projects-issues spring-projects-issues added type: bug status: declined labels Dec 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined type: bug
Projects
None yet
Development

No branches or pull requests

1 participant