anchor.diff:  EntityManagerFactory entityManagerFactory;
   ----
   
  +[[persistence-xml]]
   == Setting up and configuring Hibernate ORM with a `persistence.xml`
   
   Alternatively, you can use a `META-INF/persistence.xml` to set up Hibernate ORM.
  
positive.code: 
  === Limitations
  
  XML mapping::
  Hibernate ORM allows to map entities using XML files; this capability isn't enabled in Quarkus: use annotations instead
  as Quarkus can handle them very efficiently.
  This limitation could be lifted in the future, if there's a compelling need for it and if someone contributes it.
  
  JMX::
  Management beans are not working in GraalVM native images;
  
negative.code: 
  Please remember these are not the same property names as the ones used in the Quarkus `{config-file}`, nor will
  the same defaults be applied.
  
  [[xml-mapping]]
  == XML mapping
  
  Hibernate ORM in Quarkus supports XML mapping.
  You can add mapping files following
  the https://jakarta.ee/specifications/persistence/3.0/jakarta-persistence-spec-3.0.html#a16944[`orm.xml` format (JPA)]
  or the http://hibernate.org/dtd/hibernate-mapping-3.0.dtd[`hbm.xml` format (specific to Hibernate ORM, deprecated)]:
  
  * in `application.properties` through the (build-time) link:#quarkus-hibernate-orm_quarkus.hibernate-orm.mapping-files[`quarkus.hibernate-orm.mapping-files`] property.
  * in <<persistence-xml,`persistence.xml`>> through the `<mapping-file>` element.
  
  XML mapping files are parsed at build time.
  
  [IMPORTANT]
  ====
  The file `META-INF/orm.xml` will always be included by default, if it exists in the classpath.
  
  If that is not what you want, use `quarkus.hibernate-orm.mapping-files = no-file` or `<mapping-file>no-file</mapping-file>`.
  ====
  
  == Defining entities in external projects or jars
  
  