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
Is it because there are somewhere else I need to configure for the rest neo4j to be able to work properly? Any clues for this error would be very appreciated!
Thanks.