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: Property tag - Null data causes xml label to not appear in o
PostPosted: Fri Jun 29, 2007 3:35 pm 
Newbie

Joined: Fri Jun 29, 2007 3:30 pm
Posts: 1
I am using the dom4JSession so my hibernate querires return the results in XML. I have the following propery tag mapped to a column

<property name="DisEnrollmentDate" type="date">
<column name="DISENROLL_DT" length="7" />
</property>

My problem is if the date field in the database is null, obviously no data will be returned, but the XML tag for DisEnrollmentDate will also not be available.

I need to have the label appear in the XML even if there is no data in the database. Does anybody know how I can get this behavior...?

thanks, Jay Schrock


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.