use of org.jowidgets.cap.common.tools.bean.BeanDtoBuilder in project jo-client-platform by jo-source.
the class BeanProxyImplTest method createPersonDto.
private static IBeanDto createPersonDto(final long id, final String name, final String lastName, final Gender gender) {
final IBeanDtoBuilder builder = new BeanDtoBuilder(IPerson.class);
builder.setId(Long.valueOf(id));
builder.setValue(IPerson.NAME_PROPERTY, name);
builder.setValue(IPerson.LAST_NAME_PROPERTY, lastName);
builder.setValue(IPerson.GENDER_PROPERTY, gender);
return builder.build();
}
Aggregations