These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Replacing null values with empty string on load
PostPosted: Fri Sep 01, 2006 3:24 pm 
Newbie

Joined: Fri Jul 21, 2006 1:38 am
Posts: 3
I have a table with many columns containing null values. when I populate my Java object using Hibernate's query or load, the String properties are also null. I would like them to be the empty string instead of null.

What is the easiest way to accomplish this? From what I've read so far in the documentation and forums, implementing the PropertyAccessor interface for these properties seems like an option. But would this be the recommended solution, or is there an easier way I'm missing?

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.