[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6878) cannot insert a blank or empty xml element through dom4j entity mode

Pascal favre (JIRA) noreply at atlassian.com
Wed Dec 7 05:19:19 EST 2011


cannot insert a blank or empty xml element through dom4j entity mode
--------------------------------------------------------------------

                 Key: HHH-6878
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6878
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.6.8, 3.6.1
            Reporter: Pascal favre
            Priority: Blocker
         Attachments: blankXmlElement.tar.gz

I'd like to insert or update data through xml data. I cannot send empty element for the type Integer, Long, ... to reset or nullify  fields that are nullable.

the following execption is thrown:
  Exception in thread "main" java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:468)

the data I'd like to nullify:
   <PersonBlankValue> 
      <agePerson xsi:nill=\"true\" xmlns:xsi= \"http://www.w3.org/2001/XMLSchema-instance\"/>
      <name> .... 
   </PersonBlankValue>

I provide you a simple test case

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list