public void setCrossmatchType(String crossmatchTypeId) { if (crossmatchTypeId == null) { compatibilityTest.setCrossmatchType(null); } else { CrossmatchType ct = new CrossmatchType(); ct.setId(Integer.parseInt(crossmatchTypeId)); compatibilityTest.setCrossmatchType(ct); } }
public String getCrossmatchType() { CrossmatchType crossmatchType = compatibilityTest.getCrossmatchType(); if (crossmatchType == null) return ""; else return crossmatchType.getId().toString(); }