I have document which score and file map entity included. the keys of those maps are is dynamic student ids. how can i retrieve for specific document for specify class and student id included document like
getScoresByClassIDAndStudentId() .here 100 , 101 is subject ids. can some one help with n1ql query
here my java level entity
public class StudentDetails {
private String classid;
@Field
private Map<Long, Map<String, String>> Scores;
@Field
private Map<Long, Map<String, BigDecimal>> files;
}
result documnt
{
“classID” : 1,
“Scores”: {
"1": {
"100": {
"scale": 2,
"intCompact": 297,
"_class": "java.math.BigDecimal",
"precision": 3
},
"101": {
"scale": 2,
"intCompact": 297,
"_class": "java.math.BigDecimal",
"precision": 3
}
} ,
"2": {
"100": {
"scale": 2,
"intCompact": 297,
"_class": "java.math.BigDecimal",
"precision": 3
},
"101": {
"scale": 2,
"intCompact": 297,
"_class": "java.math.BigDecimal",
"precision": 3
}
}
}
“files”: {
"1": {
"100": {
"scale": 2,
"intCompact": 297,
"_class": "java.math.BigDecimal",
"precision": 3
},
"101": {
"scale": 2,
"intCompact": 297,
"_class": "java.math.BigDecimal",
"precision": 3
}
} ,
"2": {
"100": {
"scale": 2,
"intCompact": 297,
"_class": "java.math.BigDecimal",
"precision": 3
},
"101": {
"scale": 2,
"intCompact": 297,
"_class": "java.math.BigDecimal",
"precision": 3
}
}
}
}