RE: calling trim() on sql map returned strings

2005-10-27 Thread Gareth Moorst
solution - it's less invasive, even if it's very verbose. Cheers, Gareth. -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: 26 October 2005 17:58 To: user-java@ibatis.apache.org Subject: Re: calling trim() on sql map returned strings why could you not just put

RE: calling trim() on sql map returned strings

2005-10-27 Thread Ron Grabowski
:[EMAIL PROTECTED] Sent: 26 October 2005 17:58 To: user-java@ibatis.apache.org Subject: Re: calling trim() on sql map returned strings why could you not just put this logic into your POJO. example public void setThePropertyThatNeedsToBeTrimmed(String property) { this.property

RE: calling trim() on sql map returned strings

2005-10-27 Thread Gareth Moorst
Absolutely. -Original Message- From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: 27 October 2005 14:10 To: user-java@ibatis.apache.org Subject: RE: calling trim() on sql map returned strings Would you agree that being able to replace the default String type handler would make your

calling trim() on sql map returned strings

2005-10-26 Thread Gareth Moorst
Before acting on this e-mail or opening any attachments you are advised to read The Caudwell Holdings group of companies' disclaimer at the end of this e-mail. === Hi All my iBatis created objects have large amounts of spaces in their string

RE: calling trim() on sql map returned strings

2005-10-26 Thread Gareth Moorst
- it must still be too early in the day for rational thought... what I want to do is call trim() on all the strings I return from the db. -Original Message- From: Gareth Moorst Sent: 26 October 2005 10:01 To: user-java@ibatis.apache.org Subject: calling trim() on sql map returned strings Hi

Re: calling trim() on sql map returned strings

2005-10-26 Thread Daniel Henrique Ferreira e Silva
be too early in the day for rational thought... what I want to do is call trim() on all the strings I return from the db. -Original Message- From: Gareth Moorst Sent: 26 October 2005 10:01 To: user-java@ibatis.apache.org Subject: calling trim() on sql map returned strings Hi All

RE: calling trim() on sql map returned strings

2005-10-26 Thread Ron Grabowski
] Sent: 26 October 2005 13:34 To: user-java@ibatis.apache.org Subject: Re: calling trim() on sql map returned strings Hi Gareth, Doesn't Informix have a trim-like function you could apply in your query? Like: select trim(mycolumn) as mycolumn from mytable Doing that kind of stuff

RE: calling trim() on sql map returned strings

2005-10-26 Thread Gareth Moorst
PROTECTED] Sent: 26 October 2005 13:34 To: user-java@ibatis.apache.org Subject: Re: calling trim() on sql map returned strings Hi Gareth, Doesn't Informix have a trim-like function you could apply in your query? Like: select trim(mycolumn) as mycolumn from mytable Doing that kind