@Override
  public Object clone() {
    TypeClp clone = new TypeClp();

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

    return clone;
  }
  @Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    TypeClp type = null;

    try {
      type = (TypeClp) obj;
    } catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = type.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }