Ejemplo n.º 1
0
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    VcmsLoggerClp vcmsLogger = null;

    try {
      vcmsLogger = (VcmsLoggerClp) obj;
    } catch (ClassCastException cce) {
      return false;
    }

    String pk = vcmsLogger.getPrimaryKey();

    if (getPrimaryKey().equals(pk)) {
      return true;
    } else {
      return false;
    }
  }
Ejemplo n.º 2
0
  public Object clone() {
    VcmsLoggerClp clone = new VcmsLoggerClp();

    clone.setLoggerId(getLoggerId());
    clone.setGroupId(getGroupId());
    clone.setCompanyId(getCompanyId());
    clone.setCreatedDate(getCreatedDate());
    clone.setCreatedByUser(getCreatedByUser());
    clone.setContent(getContent());

    return clone;
  }