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.
|