PDA

View Full Version : BeanModelFactory: how to BeanModel to Bean ?



fully
25 Apr 2011, 8:33 AM
Hello,
I am using beanModelFactory to build BeanModel Collection from
JavaBean Collection (using @BEAN(UserDTO.class)):

final BeanModelFactory beanModelFactory =
BeanModelLookup.get().getFactory(UserDTO.class);
....
final List<BeanModel> createModel =
beanModelFactory.createModel(proxy.users());


My question: is there the same way to build JavaBean from beanModel ?

Thanks a lot

fully
25 Apr 2011, 8:42 AM
Sorry, getBean() was enought :)

Generic could have been helpfull.

Thanks all