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

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.2.0
    • EAP_EWP 5.1.1
    • EJB, Hibernate
    • None
    • JBoss EAP 5, Fedora Linux 15 64b, JDK sun/oracle 1.6

    • Workaround Exists
    • 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
    • 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.
    • Documented as Resolved Issue
    • 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

      Attachments

        Activity

          People

            rhn-support-alazarot Alessandro Lazarotti
            rhn-support-alazarot Alessandro Lazarotti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: