So I’m finally trying to take the time and learn Transfer and already I’m running into problems that I thought that someone else would have and answer for.
Here is my problem: I want to be able to set the null value for all my types to be an empty sting. The reason for this is because when someone submits something from a web form, everything gets passed back to the server as a string, since there are no types on the web. So someone could leave a quantity field or a time field blank and I want to be able to set something like this to null in my database.
The thing is that if I tell Transfer to use a blank string as the nullValue for a numeric type, it spits it’s skull out. Here is the nullValue portion of my transfer.xml:
So my question is, how are other people handling this? While searching the web I found this post in Google Groups about the exact same problem where Sean Corfield suggested to just use decorators. I don’t like that approach since it basically just adds more code and if I have to write a get / set method for every column in my database, then I might as well not even use Transfer.