logo       

Re: Transferring bean with embedded bean filled by selection list: msg#00196

java.dwr.user

Subject: Re: Transferring bean with embedded bean filled by selection list

But DWRUtil.setValues is not suitable because it fetches option value to result object instead of creating subobject. I can modify Person definition to replace Status member with long statusId, but this approach will break ORM semantics on server side. It will be difficult to use this approach with Hibernate, for example. What is the right way to resolve this problem?

Possible right way is to define custom converter for Person JavaScript object (extends H3BeanConverter?) which receives statusId and places appropriate Status instance for Person JavaBean. So, my questions are:

1. Which methods need I reimplement to modify conversion procedure for properties
2. How can I execute Hibernate query from converter? Is it possible to define converter bean in Spring context to setup SessionFactory for it?

--
Thanks in advance,
Eugene Prokopiev


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise