[hibernate-dev] Scanning and META-INF/orm.xml
emmanuel at hibernate.org
Mon Mar 9 06:18:06 EDT 2015
AFAIR only the META-INF/orm.xml file present in the JAR containing META-INF/persistence.xml is handled automatically. Also <jar> references will be taken into account.
The spec mentions
An object/relational mapping XML file named orm.xml may be specified in the META-INF directory in the root of the persistence unit or in the META-INF directory of any jar file referenced by the persistence.xml.
> On 06 Mar 2015, at 23:56, Steve Ebersole <steve at hibernate.org> wrote:
> Anyone remember why META-INF/orm.xml is handled specially in scanning?
> I am having some trouble locally with scanning matching multiple sources
> named META-INF/orm.xml and am trying to understand the reason we do what we
> do here.
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
More information about the hibernate-dev