0
私はspring-data-neo4j-4.2.0.RC1とneo4j-ogm-core-2.1.0.jarを使用しています
次のドメインオブジェクトを持っています
ユーザー - >ロール - >特権GraphRepositoryは第2レベルの関係でメソッドを見つける
public class User extends BaseEntity{
private String firstName;
private String lastName;
@Relationship(type="ROLE")
private Role role;
}
@NodeEntity
public class Role extends BaseEntity{
private String name;
@Relationship(type="PRIVILEDGE")
private Priviledge priviledge;
}
@NodeEntity
public class Priviledge extends BaseEntity {
private String name;
}
public interface UserRepository extends GraphRepository<User> {
User findByRolePriviledgeName(String name);
}
特定の特権名を持つすべてのユーザーを検索したいと思います。上記のクエリはJPAとSpringリポジトリで動作しましたが、GraphRepositoryで期待通りの結果を返しません。
これはバグかサポートされていないか何かが間違っているかわからない
SDN 4 GraphRepositoryは以下のようなcountByクエリをサポートしていますか? 'public interface UserRepository extends GraphRepository { Long countByName(String name); } ' –
はいサポートされています – Luanne