Re: String list in resultMap

2009-06-10 Thread Alin Popa
Hi, I suggest doing something like that (this example was not tested): On Wed, Jun 10, 2009 at 9:06 PM, cbchhaya wrote: > > Unfortunately that doesn't work either. > > The question in really simple terms: > > What should be the result map for this clas

Re: String list in resultMap

2009-06-10 Thread cbchhaya
Unfortunately that doesn't work either. The question in really simple terms: What should be the result map for this class: class Attribute { String name; List values; } cbchhaya wrote: > > Almost, except that I am already using a result-mapping to get all > attributes for an object,

Re: String list in resultMap

2009-06-10 Thread cbchhaya
Almost, except that I am already using a result-mapping to get all attributes for an object, and every attribute has a bunch of fields, one of which is a list of strings. Having already selected all the required data, I am just looking for a way to bunch up the 'attrValue' field into a list of str

Re: String list in resultMap

2009-06-10 Thread Gwyn Evans
I'm not 100% sure, but it looks to me as if this is the subject of the "Result Maps"/"Complex Collection Properties" section of the "Developer Guide" document. On Wed, Jun 10, 2009 at 3:59 AM, cbchhaya wrote: > > I have the following classes: > class Attribute { >    String attrName; >    List val