cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: Trimming strings
Date Tue, 11 Feb 2014 19:31:11 GMT
You can subclass CayenneDataObject and override writePropertyDirectly.
 That should do it.


On Tue, Feb 11, 2014 at 1:10 PM, Richard Frovarp <rfrovarp@apache.org>wrote:

> Upon insert I want to trim strings going into the database. Is there an
> easy way to configure this?
>
> I know I can override all of the appropriate functions for my settings and
> use StringUtils.trim(), then call super, but I would like an easier method
> that I'm less likely to forget to do.
>
> Thanks,
> Richard
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message