All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.haoxuer.discover.team.rest.conver.TeamMemberSimpleConver Maven / Gradle / Ivy

There is a newer version: 3.3.18-20230117
Show newest version
package com.haoxuer.discover.team.rest.conver;

import com.haoxuer.discover.team.data.entity.TeamMember;
import com.haoxuer.discover.team.rest.domain.simple.TeamSimple;
import com.haoxuer.discover.data.rest.core.Conver;

public class TeamMemberSimpleConver implements Conver {
  @Override
  public TeamSimple conver(TeamMember source) {
    TeamSimple result=new TeamSimple();
    if (source.getTeam()!=null){
      result.setId(source.getTeam().getId());
      result.setName(source.getTeam().getName());
    }
    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy