Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:2
Name and version of the database you are using:Oracle 8.1
Hi all,
I am using Hibernate to access data from a Oracle DB in which some of the tables have been populated by a legacy system. The legacy system does not understand null (dont ask!) and all null fields which are relationships are entered as " " (space).
In Hibernate 3 there is a mapping definition in the xml file where you can ask Hibernate to ignore this char. However on Hibernate 2 this does not exist so I have had to use proxy objects.
So what I want to know is: Is there a Wrapper object that can be implemented which can intercept the call to load the object which will check before it loads the object to see if there are spaces. It cant be done after it has loaded because as soon as it tries to load the object it throws row not found because no row esixts with " ".
I am after something like the HttpServletRequestWrapper but for hibernate. I dont want to amend the source code. Is this possible? does anyone know of anything like this?
All suggestions are appreciated?
Thanks