dto.setAttribute1( entity.getAttribute1() ); dto.setAttribute2( entity.getAttribute2() ); dto.setAttribute3( entity.getAttribute3() ); dto.setAttribute4( entity.getAttribute4() ); dto.setAttribute5( entity.getAttribute5() ); /* ... a few more pairs of set/get lines omitted */ dto.setAttribute21( entity.getAttribute21() ); dto.setAttribute22( entity.getAttribute22() ); dto.setAttribute23( entity.getAttribute23() ); dto.setAttribute24( entity.getAttribute24() ); dto.setAttribute25( entity.getAttribute25() );