Esempio n. 1
0
  @Override
  public Object clone() {
    TypeClp clone = new TypeClp();

    clone.setTypeId(getTypeId());
    clone.setGroupId(getGroupId());
    clone.setName(getName());

    return clone;
  }
Esempio n. 2
0
  @Override
  public void setModelAttributes(Map<String, Object> attributes) {
    Long typeId = (Long) attributes.get("typeId");

    if (typeId != null) {
      setTypeId(typeId);
    }

    Long groupId = (Long) attributes.get("groupId");

    if (groupId != null) {
      setGroupId(groupId);
    }

    String name = (String) attributes.get("name");

    if (name != null) {
      setName(name);
    }
  }
Esempio n. 3
0
 public void setPrimaryKey(long primaryKey) {
   setTypeId(primaryKey);
 }