コード例 #1
0
  public Object clone() {
    SocialRelationImpl socialRelationImpl = new SocialRelationImpl();

    socialRelationImpl.setUuid(getUuid());
    socialRelationImpl.setRelationId(getRelationId());
    socialRelationImpl.setCompanyId(getCompanyId());
    socialRelationImpl.setCreateDate(getCreateDate());
    socialRelationImpl.setUserId1(getUserId1());
    socialRelationImpl.setUserId2(getUserId2());
    socialRelationImpl.setType(getType());

    socialRelationImpl.resetOriginalValues();

    return socialRelationImpl;
  }
コード例 #2
0
  @Override
  public SocialRelation toEntityModel() {
    SocialRelationImpl socialRelationImpl = new SocialRelationImpl();

    if (uuid == null) {
      socialRelationImpl.setUuid(StringPool.BLANK);
    } else {
      socialRelationImpl.setUuid(uuid);
    }

    socialRelationImpl.setRelationId(relationId);
    socialRelationImpl.setCompanyId(companyId);
    socialRelationImpl.setCreateDate(createDate);
    socialRelationImpl.setUserId1(userId1);
    socialRelationImpl.setUserId2(userId2);
    socialRelationImpl.setType(type);

    socialRelationImpl.resetOriginalValues();

    return socialRelationImpl;
  }