Re: iBatis+xStream

2009-03-30 Thread AlexElba
Thanks Eric T. Blue wrote: > > I ran into this problem a couple years ago. It had something to do with > the > way XStream serialized the properties (not using getters/setters, but > accessing the properties directly). > > I personally like XStream a lot, but because of this limitation we en

Re: iBatis+xStream

2009-03-25 Thread Eric T. Blue
I ran into this problem a couple years ago. It had something to do with the way XStream serialized the properties (not using getters/setters, but accessing the properties directly). I personally like XStream a lot, but because of this limitation we ended up using Betwixt instead. There might be

Re: iBatis+xStream

2009-03-25 Thread Christopher Lamey
On 3/25/09 3:35 PM, "AlexElba" wrote: > The problem is this lists must be lazy. I don't want to make them not lazy Whups! Didn't see this before. If you need lazy loading, then you'll have to write custom stuff in xstream to filter out the proxies. Cheers, topher

Re: iBatis+xStream

2009-03-25 Thread Clinton Begin
If you don't want to turn off lazy loading, then this is more of an XStream question. iBATIS proxies are no different from any other proxy, so you'll need to deal with it at the XStream level (or unwrap it manually beforehand). Clinton On Wed, Mar 25, 2009 at 3:35 PM, AlexElba wrote: > > BTW t

RE: iBatis+xStream

2009-03-25 Thread Chris Lamey
Try turning off the lazy loading (it uses the cglib bytecode instrumentation): false Cheers, topher -Original Message- From: AlexElba [mailto:ramal...@yahoo.com] Sent: Wed 3/25/2009 3:35 PM To: user-java@ibatis.apache.org Subject: Re: iBatis+xStream BTW the file contains this for

Re: iBatis+xStream

2009-03-25 Thread AlexElba
BTW the file contains this for each group set true true false true false true

iBatis+xStream

2009-03-25 Thread AlexElba
Hello, I am using iBatis to select data from db and after serialize it to xml using xStream. During serialization I am getting unnecessary stuff public class Office{ private String name; private Employee employee; .. getters/setters ... } public class Employee { private List groups; .. getter