eg:
public class A {
Integer a;
Integer b;
Integer c;
public Integer getA() {
return a;
}
public void setA(Integer a) {
this.a = a;
}
public Integer getB() {
return b;
}
public void setB(Integer b) {
this.b = b;
}
public Integer getC() {
return c;
}
public void setC(Integer c) {
this.c = c;
}
}
public class B {
Integer a;
Integer b;
Integer c;
public Integer getA() {
return a;
}
public void setA(Integer a) {
this.a = a;
}
public Integer getB() {
return b;
}
public void setB(Integer b) {
this.b = b;
}
public Integer getC() {
return c;
}
public void setC(Integer c) {
this.c = c;
}
}
//eg:
<mapping map-id="caseA" wildcard="false">
<class-a>A</class-a>
<class-b>B</class-b>
<field>
<a>a</a>
<b>a</b>
</field>
<field>
<a>b</a>
<b>b</b>
</field>
<field>
<a>c</a>
<b>c</b>
</field>
</mapping>
<mapping map-id="caseB" wildcard="false">
<class-a>A</class-a>
<class-b>B</class-b>
<field>
<a>a</a>
<b>a</b>
</field>
<field>
<a>b</a>
<b>b</b>
</field>
</mapping>
//What if i want to map with mapping id caseB
//Currently which ever configuration is prior to other
//According to that mapping is carried out
//i.e consider the above sequence and i want to map only two fields out of the three
// then what happens is it maps all the three field
//If mapping is of only two fields and wildcard is set to false
//then default mapping taken is the first one not the other
Is this the bug or nay thing is missing while mapping
Trying to understand this one. So what exactly is the problem?
Are you complaining that the first mapping is taken by default if you do not specify mapId?