String getStringKey(cream.DetailsPK value) { StringBuilder sb = new StringBuilder(); sb.append(value.getName()); sb.append(SEPARATOR); sb.append(value.getLastName()); return sb.toString(); }
cream.DetailsPK getKey(String value) { cream.DetailsPK key; String values[] = value.split(SEPARATOR_ESCAPED); key = new cream.DetailsPK(); key.setName(values[0]); key.setLastName(values[1]); return key; }