-->
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: XML generated string
PostPosted: Thu Jan 31, 2008 1:55 pm 
Newbie

Joined: Thu Jan 31, 2008 1:27 pm
Posts: 1
Hi All and sorry for my little english.

I have a problem with XML data: If an object has some fields with null value, these ones are not included in the element that is generated.

Session session = _sessionFactory.openSession().getSession(EntityMode.DOM4J);

Element paziente = (Element) session.load(Paziente.class, id);// query.uniqueResult();

In this case, the element "paziente" includes only all the nodes that corrisponding to a not-null-value fields in the DB, but not the null-value ones.
I'd like that all the fields (null and not-null) will be in the element "paziente".

Thanks a lot!
Best regards.


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.