3 Replies Latest reply on May 3, 2011 1:49 PM by alesj

    Hibernate War scanning

    toddpi314

      Using JBoss 6, Maven 2, Seam 3 stuff.

       

      Is there any way to just get Hibernate to scan all of my packaged WAR dependencies for Hibernate @Entity annotations?

       

      The persistence.xml path is lame because it requires me to

      (1) either build up the relative jar references dynamically (xml generation)

      (2) drop my version numbers on enterprise module artifacts (booooooo)

       

      In JBoss 5 and Seam 2, we ended up having to do the relative jar include and drop version numbers on the jars themselves. This caused chaos in Ivy/Maven caching.

       

      Does JBoss 6/7 have any fancy tools that can help me out with this?