Search in sources :

Example 1 with BeanDtoBuilder

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();
}
Also used : IBeanDtoBuilder(org.jowidgets.cap.common.api.bean.IBeanDtoBuilder) BeanDtoBuilder(org.jowidgets.cap.common.tools.bean.BeanDtoBuilder) IBeanDtoBuilder(org.jowidgets.cap.common.api.bean.IBeanDtoBuilder)

Aggregations

IBeanDtoBuilder (org.jowidgets.cap.common.api.bean.IBeanDtoBuilder)1 BeanDtoBuilder (org.jowidgets.cap.common.tools.bean.BeanDtoBuilder)1