[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6550) NullPointerException if a <column> element is used without "not-null" attribute in HBM XML

Gail Badner (JIRA) noreply at atlassian.com
Fri Aug 5 17:44:02 EDT 2011


NullPointerException if a <column> element is used without "not-null" attribute in HBM XML
------------------------------------------------------------------------------------------

                 Key: HHH-6550
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6550
             Project: Hibernate Core
          Issue Type: Bug
          Components: metamodel
            Reporter: Gail Badner
            Assignee: Steve Ebersole
             Fix For: 4.0.0.next


To reproduce, add a column element to the "name" property in:

hibernate-core/src/test/java/org/hibernate/metamodel/binding/SimpleEntity.hbm.xml

and run org.hibernate.metamodel.binding.BasicHbmBindingTests .

For example:

        <property name="name">
            <column name="name"/>
        </property>

IIRC, after adding "not-null" attribute, the test will still fail with an NPE due to a different attribute that has no default.


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