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?
AS6 uses this scanning lib:
The Hibernate code is here:
AS7 uses Jandex project:
As you can see, for AS6 you can easily change or add how @Entity classes are found.
e.g. you can even change current Hibernate setup --> simply extend its scanning plugin
The components are plain beans at the end:
|Retrieving data ...|