Факт 1
Код: Выделить всё
Class StudentFact{
private int id;
private String name;
private List subjectList;
public void setId(int id){
this.id = id;
}
public int getId(){
return id;
}
public void setName(String name){
this.Name = name;
}
public String getName(){
return name;
}
public void setSubjectList(List subjectList) {
this.subjectList = subjectList;
}
public int getSubjectList() {
return subjectList;
}
}
Код: Выделить всё
Class SubjectFact{
private int subId;
private String subjectName;
public void setSubId(int subId){
this.subId= subId;
}
public int getSubId(){
return subId;
}
public void setSubjectName(String subjectName){
this.subjectName = subjectName;
}
public int getSubejctName(){
return subjectName;
}
}
Код: Выделить всё
{
"id":123,
"name": "xyz",
"subjectList": [
{
"id": 6,
"name":"Hindi"
},
{
"id": 6,
"name":"Hindi"
}
}
Код: Выделить всё
{
"id":123,
"name": "xyz",
"subjectList": [
{
"id": 5,
"name":"English"
},
{
"id": 6,
"name":"Hindi"
}
}
[img]https: //i.stack.imgur.com/AvacL.png[/img]
Кто-нибудь посоветует, пожалуйста, как добиться ожидаемого ответа?
Подробнее здесь: https://stackoverflow.com/questions/620 ... ble-drools