示例#1
0
  @Override
  public Object clone() {
    ItemSubjectClp clone = new ItemSubjectClp();

    clone.setItemId(getItemId());
    clone.setSubjectId(getSubjectId());

    return clone;
  }
示例#2
0
  @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);
    }
  }
示例#3
0
 @Override
 public void setPrimaryKey(ItemSubjectPK primaryKey) {
   setItemId(primaryKey.itemId);
   setSubjectId(primaryKey.subjectId);
 }