Why write a decorator, when you could just obj.getFooIsNull() and it would do the value check for you?
I tend to write nullable values that can be 0 or more to an incredibly large negative number Mark On Thu, Oct 16, 2008 at 5:50 AM, Steve Brownlee <[EMAIL PROTECTED]> wrote: > > I hate hacks, but I've hacked my way around this issue. I simply set > the default value to -1 and then I made an override method to check if > the value is >= 0. If not, I return an empty string. > > On Oct 15, 1:28 pm, Steve Brownlee <[EMAIL PROTECTED]> wrote: >> Thanks, Matt. That's actually the first thing I tried before I delved >> into the thread reading marathon. Transfer didn't like me setting the >> default value of numeric fields to something non-numeric >> >> ------------------------------- >> The argument DEFAULTNULLNUMERIC passed to function >> setDefaultNullNumeric() is not of type numeric. :: If the component >> name is specified as a type of this argument, the reason for this >> error might be that a definition file for such component cannot be >> found or is not accessible. >> ------------------------------- >> >> - Steve >> >> On Oct 15, 12:48 pm, "Matt Quackenbush" <[EMAIL PROTECTED]> wrote: >> >> > Steve, >> >> > In your Transfer config file, add a <nullValues> block, and set numeric to >> > NULL. >> >> >http://docs.transfer-orm.com/wiki/Transfer_Configuration_File.cfm >> >> > HTH. > > > -- E: [EMAIL PROTECTED] W: www.compoundtheory.com --~--~---------~--~----~------------~-------~--~----~ Before posting questions to the group please read: http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer You received this message because you are subscribed to the Google Groups "transfer-dev" group. To post to this group, send email to transfer-dev@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/transfer-dev?hl=en -~----------~----~----~----~------~----~------~--~---