Uploaded image for project: 'Hibernate ORM'
  1. HHH-10430

Comment for class is ignored when using subselect in hibernate mapping

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.1.0
    • Component/s: hibernate-core
    • Labels:
      None
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      When using a *.hbm.xml file with a class element declaration that specifies a subselect and a comment element like below, the comment is ignored.

      <hibernate-mapping package='org.hibernate.test.hbm'>                
          <class name='Foo' subselect='from foo'>                         
              <comment>This is class 'Foo' with property 'bar'.</comment> 
                  <id name='id' type='int'>                                   
                      <generator class='sequence'/>                           
                  </id>                                                       
                  <property name='bar' type='string'/>                        
          </class>                                                        
      </hibernate-mapping>                                                
      

      A test project demonstrating the issue is attached.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              koen.aers Koen Aers
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: