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
... 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.
The text was updated successfully, but these errors were encountered:
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
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