Example #1
0
  /** @param id */
  public void setParentId(long id) {
    this.parentId = id;
    parentType = new NewsType();

    if (this.lazy) {
      parentType._id = id;
    }

    if (!this.lazy && id > 0) {
      parentType.id = id;
    }
  }