0
如何查詢特定項目如果我有兩個參數username
和projectname
?特別是,以下查詢有什麼問題?如何從數據庫中選擇列表中的特定條目?
class Person {
private String name;
private List<Project> projects;
}
class Project {
private String projectname;
}
查詢:
結果:
illegal attempt to dereference collection [person0_.name.projects] with element property reference [projectname]