On 18.03.2013, at 17:09, Steve Ebersole <steve(a)hibernate.org> wrote:
Out of curiosity, where is this documented as being supported?
http://docs.jboss.org/hibernate/entitymanager/3.6/reference/en/html/confi...
The class element specifies a fully qualified class name that you will map. By default all
properly annotated classes and all hbm.xml files found inside the archive are added to the
persistence unit configuration. You can add some external entity through the class element
though. As an extension to the specification, you can add a package name in the
<class> element (eg <class>org.hibernate.eg</class>). Caution, the
package will include the metadata defined at the package level (ie in package-info.java),
it will not include all the classes of a given package.