@Override public Object clone() { ItemSubjectClp clone = new ItemSubjectClp(); clone.setItemId(getItemId()); clone.setSubjectId(getSubjectId()); return clone; }
@Override public void setModelAttributes(Map<String, Object> attributes) { Long itemId = (Long) attributes.get("itemId"); if (itemId != null) { setItemId(itemId); } Long subjectId = (Long) attributes.get("subjectId"); if (subjectId != null) { setSubjectId(subjectId); } }
@Override public void setPrimaryKey(ItemSubjectPK primaryKey) { setItemId(primaryKey.itemId); setSubjectId(primaryKey.subjectId); }