import org.springframework.stereotype.Service;
@Service
public class RoleConverter implements Converter<Role, RoleEntity> {
@Override
public RoleEntity fromScim(Role scim) {
<BUG>RoleEntity rolesEntity = new RoleEntity();
rolesEntity.setValue(String.valueOf(scim.getValue()));
rolesEntity.setType(scim.getType());
rolesEntity.setPrimary(scim.isPrimary());
return rolesEntity;
}</BUG>
@Override

import org.springframework.stereotype.Service;
@Service
public class RoleConverter implements Converter<Role, RoleEntity> {
@Override
public RoleEntity fromScim(Role scim) {
RoleEntity roleEntity = new RoleEntity();
roleEntity.setValue(String.valueOf(scim.getValue()));
roleEntity.setType(scim.getType());
roleEntity.setPrimary(scim.isPrimary());
roleEntity.setDisplay(scim.getDisplay());
return roleEntity;
}
@Override
