Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-3712 Number of hbm generation bugs
  3. JBIDE-4050

Abstract attribute is never exported in persistent class.

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 3.1.0.M1
    • 3.0.0.GA
    • freemarker, hibernate
    • None

      We use the following code to export the attrubute:
      <#if clazz.abstract?exists && clazz.abstract>
      abstract="true"
      </#if>
      but "abstract" attribute held into PersistentClass.isAbstract. I guess developers of freemarker check only get+Fieldname and is+Fieldname, like java convension says.
      So, the working code is:
      <#if clazz.isAbstract()?exists && clazz.isAbstract()>
      abstract="true"
      </#if>

      Patch and unit test will be attached.

        1. patch.txt
          0.6 kB
        2. test.txt
          8 kB

              dgeraskov Dmitry Geraskov (Inactive)
              dgeraskov Dmitry Geraskov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: