Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-7488

HHH-6806: Auto scan for JPA entities does not work in exploded packages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: EAP_EWP 5.1.1
    • Fix Version/s: EAP_EWP 5.2.0
    • Component/s: EJB, Hibernate
    • Labels:
      None
    • Environment:

      JBoss EAP 5, Fedora Linux 15 64b, JDK sun/oracle 1.6

    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Using unexploded packages on <jar-file> tag or declaring each one entity by "<class>" tag

      Show
      Using unexploded packages on <jar-file> tag or declaring each one entity by "<class>" tag
    • Release Notes Text:
      Hide
      Persistence units that had exploded packages in a <literal>&lt;jar-file&gt;</literal> tag did not have their entities scanned. It returned the vfsfile protocol for exploded packages declared in <literal>&lt;jar-file&gt;</literal> which were not scanned by Hibernate EntityManager. The class JarVisitorFactory returned an incorrect implementation of AbstractJarVisitor for vfsfile (returning InputStreamZippedJarVisitor). This issue has been resolved by modifying JarVisitorFactory so that it returns the correct implementation and as a result, ExplodedJarVisitor is able to scan entities in exploded packages appropriately.
      Show
      Persistence units that had exploded packages in a <literal>&lt;jar-file&gt;</literal> tag did not have their entities scanned. It returned the vfsfile protocol for exploded packages declared in <literal>&lt;jar-file&gt;</literal> which were not scanned by Hibernate EntityManager. The class JarVisitorFactory returned an incorrect implementation of AbstractJarVisitor for vfsfile (returning InputStreamZippedJarVisitor). This issue has been resolved by modifying JarVisitorFactory so that it returns the correct implementation and as a result, ExplodedJarVisitor is able to scan entities in exploded packages appropriately.
    • Release Notes Docs Status:
      Documented as Resolved Issue
    • Docs QE Status:
      NEW

      Description

      Persistence units that has exploded packages in "<jar-file>" tag, does not have its entities scanned

      Related: https://hibernate.onjira.com/browse/HHH-6806

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                alessandrolt Alessandro Lazarotti
                Reporter:
                alessandrolt Alessandro Lazarotti
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: