I have a hibernate mapping over a legacy DB2 database. A particular table has a foreign key to another table. This column is populated with spaces instead of null when there is no association to the other table. I have a many to one associate to the second table. The issue is for every row that has spaces in the foreign key field an SQL is executed against the database as there is no value in the cache for it. Is there a way to ignore fields populated with spaces in the join so requests are not issued to the database?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.