anchor.diff:  ----
   
   I lied to you, we have already mapped two entities!
  +
   If you are familiar with JPA,
   you can see that there is nothing specific to Hibernate OGM in our mapping.
   
  
positive.code: [source, JAVA]
  ----
  //accessing JBoss's Transaction can be done differently but this one works nicely
  TransactionManager tm = getTransactionManager();
  
  //build the EntityManagerFactory as you would build in in Hibernate ORM
  EntityManagerFactory emf = Persistence.createEntityManagerFactory(
  
negative.code:         <artifactId>jboss-transaction-api_1.2_spec</artifactId>
      </dependency>
  
      <!-- Add the Narayana Transactions Manager
           an implementation would be provided in a Java EE container,
           but this works nicely in Java SE as well -->
      <dependency>
          <groupId>org.jboss.narayana.jta</groupId>
          <artifactId>narayana-jta</artifactId>
      </dependency>
      <dependency>
          <groupId>org.jboss</groupId>
          <artifactId>jboss-transaction-spi</artifactId>
      </dependency>
  </dependencies>
  ----
  