return empty elements or attributes for null property values in EntityMode.DOM4J
--------------------------------------------------------------------------------
Key: HHH-1899
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1899
Project: Hibernate3
Type: Improvement
Versions: 3.1
Environment: Windows2000
Reporter: Bill Salvucci
Priority: Minor
Please provide a configuration option to make hibernate return an empty node (or attribute with empty string) for properties that have a null value?
For example
class Person {
Long id;
String firstName;
String lastName;
}
1,Bill,Salvucci
2,,Smith
Currently the xml document returned would look like:
<Person>
<id>1</id>
<firstName>Bill</firstName>
<lastName>Salvucci</lastName>
</Person>
<Person>
<id>2</id>
<lastName>Smith</lastName>
</Person>
I would like it to look like:
<Person>
<id>1</id>
<firstName>Bill</firstName>
<lastName>Salvucci</lastName>
</Person>
<Person>
<id>2</id>
<firstName/>
<lastName>Smith</lastName>
</Person>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|