I have two entities: User and Connection, along with two appropriate repositories. Both entities has @GraphId id
field. Connection entity has User user
field.
In ConnectionRepository interface I added following method:
List<Connection> findByUserId(long userId)
But it doesn't work. It generates incorrect cypher query. I think it incorrect, because it contains clause like this:
WHERE user.id = 15
which is not working, because id
is not a property. It must be:
WHERE id(user) = 15
Is this a bug? In any case, how can I get it to work?