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 <st...@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@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev


_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to