public LayoutBranch toEntityModel() {
    LayoutBranchImpl layoutBranchImpl = new LayoutBranchImpl();

    layoutBranchImpl.setLayoutBranchId(LayoutBranchId);
    layoutBranchImpl.setGroupId(groupId);
    layoutBranchImpl.setCompanyId(companyId);
    layoutBranchImpl.setUserId(userId);

    if (userName == null) {
      layoutBranchImpl.setUserName(StringPool.BLANK);
    } else {
      layoutBranchImpl.setUserName(userName);
    }

    layoutBranchImpl.setLayoutSetBranchId(layoutSetBranchId);
    layoutBranchImpl.setPlid(plid);

    if (name == null) {
      layoutBranchImpl.setName(StringPool.BLANK);
    } else {
      layoutBranchImpl.setName(name);
    }

    if (description == null) {
      layoutBranchImpl.setDescription(StringPool.BLANK);
    } else {
      layoutBranchImpl.setDescription(description);
    }

    layoutBranchImpl.setMaster(master);

    layoutBranchImpl.resetOriginalValues();

    return layoutBranchImpl;
  }
  @Override
  public Object clone() {
    LayoutBranchImpl layoutBranchImpl = new LayoutBranchImpl();

    layoutBranchImpl.setLayoutBranchId(getLayoutBranchId());
    layoutBranchImpl.setGroupId(getGroupId());
    layoutBranchImpl.setCompanyId(getCompanyId());
    layoutBranchImpl.setUserId(getUserId());
    layoutBranchImpl.setUserName(getUserName());
    layoutBranchImpl.setLayoutSetBranchId(getLayoutSetBranchId());
    layoutBranchImpl.setPlid(getPlid());
    layoutBranchImpl.setName(getName());
    layoutBranchImpl.setDescription(getDescription());
    layoutBranchImpl.setMaster(getMaster());

    layoutBranchImpl.resetOriginalValues();

    return layoutBranchImpl;
  }