You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by venra <sv...@hotmail.com> on 2011/05/31 22:55:56 UTC

Custom Value handler to trim a string from database

Hi all, 

I would like to trim the string that comes from database using custom
strategy. I really appreciate if some one can post a code snippet to use
custom value handler and the configuration part of it. Thanks in advance. 


-Venra  



--
View this message in context: http://openjpa.208410.n2.nabble.com/Custom-Value-handler-to-trim-a-string-from-database-tp6424484p6424484.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Custom Value handler to trim a string from database

Posted by MiƂosz Tylenda <mt...@o2.pl>.
Venra,

A similar topic was discussed some time ago. Have a look at http://openjpa.208410.n2.nabble.com/Mapping-CHAR-column-to-String-tp5727930p5727930.html.

Regards,
Milosz


> Hi all, 
> 
> I would like to trim the string that comes from database using custom
> strategy. I really appreciate if some one can post a code snippet to use
> custom value handler and the configuration part of it. Thanks in advance. 
> 
> 
> -Venra  
> 
> 
> 
> --
> View this message in context: http://openjpa.208410.n2.nabble.com/Custom-Value-handler-to-trim-a-string-from-database-tp6424484p6424484.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>