title: Hibernate: No identifier specified for entity
body: <p>I am trying to build a small project in Hibernate and doing a demo with a mysql docker database. Everything worked fine until I added a new class called Flight and the corresponding FlightController. 
  The log says:</p>
  
  <pre><code>2018-12-02 14:42:47,281 DEBUG [main] org.hibernate.cfg.AbstractPropertyHolder: Attempting to locate auto-apply AttributeConverter for property [de.hsma.jens.models.Customer:address]
  2018-12-02 14:42:47,281 DEBUG [main] org.hibernate.cfg.annotations.SimpleValueBinder: building SimpleValue for address
  2018-12-02 14:42:47,281 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: Building property address
  2018-12-02 14:42:47,281 DEBUG [main] org.hibernate.cfg.Ejb3Column: Binding column: Ejb3Column{table=org.hibernate.mapping.Table(CUSTOMERS), mappingColumn=country, insertable=true, updatable=true, unique=false}
  2018-12-02 14:42:47,281 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: MetadataSourceProcessor property country with lazy=false
  2018-12-02 14:42:47,281 DEBUG [main] org.hibernate.cfg.AbstractPropertyHolder: Attempting to locate auto-apply AttributeConverter for property [de.hsma.jens.models.Customer:country]
  2018-12-02 14:42:47,282 DEBUG [main] org.hibernate.cfg.annotations.SimpleValueBinder: building SimpleValue for country
  2018-12-02 14:42:47,282 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: Building property country
  2018-12-02 14:42:47,282 DEBUG [main] org.hibernate.cfg.Ejb3Column: Binding column: Ejb3Column{table=org.hibernate.mapping.Table(CUSTOMERS), mappingColumn=creditCard, insertable=true, updatable=true, unique=false}
  2018-12-02 14:42:47,282 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: MetadataSourceProcessor property creditCard with lazy=false
  2018-12-02 14:42:47,282 DEBUG [main] org.hibernate.cfg.AbstractPropertyHolder: Attempting to locate auto-apply AttributeConverter for property [de.hsma.jens.models.Customer:creditCard]
  2018-12-02 14:42:47,282 DEBUG [main] org.hibernate.cfg.annotations.SimpleValueBinder: building SimpleValue for creditCard
  2018-12-02 14:42:47,283 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: Building property creditCard
  2018-12-02 14:42:47,283 DEBUG [main] org.hibernate.cfg.Ejb3Column: Binding column: Ejb3Column{table=org.hibernate.mapping.Table(CUSTOMERS), mappingColumn=firstname, insertable=true, updatable=true, unique=false}
  2018-12-02 14:42:47,283 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: MetadataSourceProcessor property firstname with lazy=false
  2018-12-02 14:42:47,286 DEBUG [main] org.hibernate.cfg.AbstractPropertyHolder: Attempting to locate auto-apply AttributeConverter for property [de.hsma.jens.models.Customer:firstname]
  2018-12-02 14:42:47,286 DEBUG [main] org.hibernate.cfg.annotations.SimpleValueBinder: building SimpleValue for firstname
  2018-12-02 14:42:47,286 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: Building property firstname
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.Ejb3Column: Binding column: Ejb3Column{table=org.hibernate.mapping.Table(CUSTOMERS), mappingColumn=lastname, insertable=true, updatable=true, unique=false}
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: MetadataSourceProcessor property lastname with lazy=false
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.AbstractPropertyHolder: Attempting to locate auto-apply AttributeConverter for property [de.hsma.jens.models.Customer:lastname]
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.annotations.SimpleValueBinder: building SimpleValue for lastname
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: Building property lastname
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.Ejb3Column: Binding column: Ejb3Column{table=org.hibernate.mapping.Table(CUSTOMERS), mappingColumn=miles_flown_year, insertable=true, updatable=true, unique=false}
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: MetadataSourceProcessor property miles_flown_year with lazy=false
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.AbstractPropertyHolder: Attempting to locate auto-apply AttributeConverter for property [de.hsma.jens.models.Customer:miles_flown_year]
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.annotations.SimpleValueBinder: building SimpleValue for miles_flown_year
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: Building property miles_flown_year
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.Ejb3Column: Binding column: Ejb3Column{table=org.hibernate.mapping.Table(CUSTOMERS), mappingColumn=phonenumber, insertable=true, updatable=true, unique=false}
  2018-12-02 14:42:47,287 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: MetadataSourceProcessor property phonenumber with lazy=false
  2018-12-02 14:42:47,288 DEBUG [main] org.hibernate.cfg.AbstractPropertyHolder: Attempting to locate auto-apply AttributeConverter for property [de.hsma.jens.models.Customer:phonenumber]
  2018-12-02 14:42:47,288 DEBUG [main] org.hibernate.cfg.annotations.SimpleValueBinder: building SimpleValue for phonenumber
  2018-12-02 14:42:47,288 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: Building property phonenumber
  2018-12-02 14:42:47,288 DEBUG [main] org.hibernate.cfg.Ejb3Column: Binding column: Ejb3Column{table=org.hibernate.mapping.Table(CUSTOMERS), mappingColumn=status, insertable=true, updatable=true, unique=false}
  2018-12-02 14:42:47,288 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: MetadataSourceProcessor property status with lazy=false
  2018-12-02 14:42:47,288 DEBUG [main] org.hibernate.cfg.AbstractPropertyHolder: Attempting to locate auto-apply AttributeConverter for property [de.hsma.jens.models.Customer:status]
  2018-12-02 14:42:47,290 DEBUG [main] org.hibernate.cfg.annotations.SimpleValueBinder: building SimpleValue for status
  2018-12-02 14:42:47,290 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: Building property status
  2018-12-02 14:42:47,290 DEBUG [main] org.hibernate.cfg.Ejb3Column: Binding column: Ejb3Column{table=org.hibernate.mapping.Table(CUSTOMERS), mappingColumn=total_miles_flown, insertable=true, updatable=true, unique=false}
  2018-12-02 14:42:47,290 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: MetadataSourceProcessor property total_miles_flown with lazy=false
  2018-12-02 14:42:47,290 DEBUG [main] org.hibernate.cfg.AbstractPropertyHolder: Attempting to locate auto-apply AttributeConverter for property [de.hsma.jens.models.Customer:total_miles_flown]
  2018-12-02 14:42:47,290 DEBUG [main] org.hibernate.cfg.annotations.SimpleValueBinder: building SimpleValue for total_miles_flown
  2018-12-02 14:42:47,291 DEBUG [main] org.hibernate.cfg.annotations.PropertyBinder: Building property total_miles_flown
  2018-12-02 14:42:47,291 DEBUG [main] org.hibernate.cfg.AnnotationBinder: Binding entity from annotated class: de.hsma.jens.models.Flight
  2018-12-02 14:42:47,291 DEBUG [main] org.hibernate.cfg.Ejb3Column: Binding column: Ejb3DiscriminatorColumn{logicalColumnName'DTYPE', discriminatorTypeName='string'}
  2018-12-02 14:42:47,291 DEBUG [main] org.hibernate.cfg.annotations.EntityBinder: Import with entity name Flight
  2018-12-02 14:42:47,291 DEBUG [main] org.hibernate.cfg.annotations.EntityBinder: Bind entity de.hsma.jens.models.Flight on table FLIGHTS
  Exception in thread "main" java.lang.ExceptionInInitializerError
  2018-12-02 14:42:47,293 DEBUG [main] org.hibernate.jpa.HibernatePersistenceProvider: Unable to build entity manager factory
  Caused by: javax.persistence.PersistenceException: Unable to build entity manager factory
  org.hibernate.AnnotationException: No identifier specified for entity: de.hsma.jens.models.Flight
      at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:66)
      at org.hibernate.cfg.InheritanceState.determineDefaultAccessType(InheritanceState.java:265)
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
      at org.hibernate.cfg.InheritanceState.getElementsToProcess(InheritanceState.java:211)
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39)
      at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:719)
      at de.hsma.jens.de.hsma.jens.transactions.UpdateUncommitted1.&lt;clinit&gt;(UpdateUncommitted1.java:22)
      at org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl.processEntityHierarchies(AnnotationMetadataSourceProcessorImpl.java:245)
  Caused by: org.hibernate.AnnotationException: No identifier specified for entity: de.hsma.jens.models.Flight
      at org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.processEntityHierarchies(MetadataBuildingProcess.java:222)
      at org.hibernate.cfg.InheritanceState.determineDefaultAccessType(InheritanceState.java:265)
      at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:265)
      at org.hibernate.cfg.InheritanceState.getElementsToProcess(InheritanceState.java:211)
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:848)
      at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:719)
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:875)
      at org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl.processEntityHierarchies(AnnotationMetadataSourceProcessorImpl.java:245)
      at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:58)
      at org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.processEntityHierarchies(MetadataBuildingProcess.java:222)
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
      at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:265)
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39)
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:848)
      at de.hsma.jens.de.hsma.jens.transactions.UpdateUncommitted1.&lt;clinit&gt;(UpdateUncommitted1.java:22)
      at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:875)
      at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:58)
      ... 3 more
  2018-12-02 14:43:16,898 DEBUG [pool-2-thread-1] org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProvider
  </code></pre>
  
  <p>Other solutions provided in similar question, did not help nor fit the exact problem I have.</p>
  
  <p>The Flight class looks like this:</p>
  
  <pre><code>package de.hsma.jens.models;
  
  import com.google.common.base.Objects;
  import org.hibernate.annotations.GenericGenerator;
  
  import javax.persistence.*;
  
  @Entity(name = "Flight")
  @Table(name = "FLIGHTS")
  public class Flight {
      @Id
      //@GeneratedValue(generator = "uuid")
      //@GenericGenerator(name = "uuid", strategy = "uuid2")
      private String flightID;
  
      private String departureTime;
      private String timeOfArrival;
      private String type;
      private int priceFirstClass;
      private int priceEcoClass;
      private int seatsEco;
      private int seatsFirstClass;
  
      public Flight() {
      }
  
      public String getFlightID() {
          return flightID;
      }
  
      public void setFlightID(String flightID) {
          this.flightID = flightID;
      }
  
      public String getDepartureTime() {
          return departureTime;
      }
  
      public void setDepartureTime(String departureTime) {
          this.departureTime = departureTime;
      }
  
      public String getTimeOfArrival() {
          return timeOfArrival;
      }
  
      public void setTimeOfArrival(String timeOfArrival) {
          this.timeOfArrival = timeOfArrival;
      }
  
      public String getType() {
          return type;
      }
  
      public void setType(String type) {
          this.type = type;
      }
  
      public int getPriceFirstClass() {
          return priceFirstClass;
      }
  
      public void setPriceFirstClass(int priceFirstClass) {
          this.priceFirstClass = priceFirstClass;
      }
  
      public int getPriceEcoClass() {
          return priceEcoClass;
      }
  
      public void setPriceEcoClass(int priceEcoClass) {
          this.priceEcoClass = priceEcoClass;
      }
  
      public int getSeatsEco() {
          return seatsEco;
      }
  
      public void setSeatsEco(int seatsEco) {
          this.seatsEco = seatsEco;
      }
  
      public int getSeatsFirstClass() {
          return seatsFirstClass;
      }
  
      public void setSeatsFirstClass(int seatsFirstClass) {
          this.seatsFirstClass = seatsFirstClass;
      }
  
      @Override
      public String toString() {
          return Objects.toStringHelper(this)
                  .add("flightID", flightID)
                  .add("departureTime", departureTime)
                  .add("timeOfArrival", timeOfArrival)
                  .add("type", type)
                  .add("priceFirstClass", priceFirstClass)
                  .add("priceEcoClass", priceEcoClass)
                  .add("seatsEco", seatsEco)
                  .add("seatsFirstClass", seatsFirstClass)
                  .toString();
      }
  }
  </code></pre>
  
  <p>As you can see I have tried using the annotation @GeneratedValue, but it didnt help and the error continues to be: "No identifier specified for entity: de.hsma.jens.models.Flight.</p>
  
  <p>My persistence.xml looks like this:</p>
  
  <pre><code>&lt;persistence xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns="http://java.sun.com/xml/ns/persistence"
               xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
               version="2.0"&gt;
      &lt;!--
  
          &lt;persistence-unit name="ogm-mysql" transaction-type="JTA"&gt;
              &lt;provider&gt;org.hibernate.ogm.jpa.HibernateOgmPersistence&lt;/provider&gt;
              &lt;properties&gt;
                  &lt;property name="hibernate.archive.autodetection" value="class" /&gt;
                  &lt;property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" /&gt;
                  &lt;property name="hibernate.connection.url"
                            value="jdbc:mysql://localhost:3306/ogm_hibernate?createDatabaseIfNotExist=true" /&gt;
                  &lt;property name="hibernate.connection.username" value="root" /&gt;
                  &lt;property name="hibernate.connection.password" value="jenskohler" /&gt;
  
                  &lt;property name="hibernate.flushMode" value="FLUSH_AUTO" /&gt;
                  &lt;property name="hibernate.hbm2ddl.auto" value="create" /&gt;
                  &lt;property name="hibernate.show_sql" value="true" /&gt;
              &lt;/properties&gt;
          &lt;/persistence-unit&gt;
      --&gt;
  
      &lt;persistence-unit name="OGM_MYSQL" transaction-type="JTA"&gt;
          &lt;description&gt;
              Persistence unit for the JPA tutorial of the Hibernate Getting Started Guide
          &lt;/description&gt;
          &lt;provider&gt;org.hibernate.jpa.HibernatePersistenceProvider&lt;/provider&gt;
          &lt;class&gt;de.hsma.jens.models.Customer&lt;/class&gt;
          &lt;class&gt;de.hsma.jens.models.Airport&lt;/class&gt;
          &lt;class&gt;de.hsma.jens.models.Flight&lt;/class&gt;
  
          &lt;properties&gt;
              &lt;property name="javax.persistence.jdbc.driver" value="com.mysql.cj.jdbc.Driver"/&gt;
              &lt;property name="javax.persistence.jdbc.url"
                        value="jdbc:mysql://localhost:3306/ogm_hibernate?createDatabaseIfNotExist=true&amp;amp;useSSL=false&amp;amp;allowPublicKeyRetrieval=true"/&gt;
              &lt;property name="javax.persistence.jdbc.user" value="root"/&gt;
              &lt;property name="javax.persistence.jdbc.password" value="root"/&gt;
              &lt;property name="hibernate.hbm2ddl.auto" value="update"/&gt;
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>Additionally the pom.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns="http://maven.apache.org/POM/4.0.0"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;hibernate-ogm-example&lt;/groupId&gt;
      &lt;artifactId&gt;hibernate-ogm-example&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
     &lt;!-- use can use either 'jar' or 'war' here --&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.7.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
  
          &lt;plugin&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.2.1&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;archive&gt;
                      &lt;manifest&gt;
                          &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                      &lt;/manifest&gt;
                  &lt;/archive&gt;
  
                  &lt;failOnMissingWebXml&gt;false&lt;/failOnMissingWebXml&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
  
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;org.hibernate.ogm&lt;/groupId&gt;
                  &lt;artifactId&gt;hibernate-ogm-bom&lt;/artifactId&gt;
                  &lt;version&gt;5.1.0.Final&lt;/version&gt;
                  &lt;type&gt;pom&lt;/type&gt;
                  &lt;scope&gt;import&lt;/scope&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate.ogm&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-ogm-infinispan&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-search-orm&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate.ogm&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-ogm-neo4j&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate.ogm&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-ogm-mongodb&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate.ogm&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-ogm-cassandra&lt;/artifactId&gt;
  
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate.ogm&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-ogm-redis&lt;/artifactId&gt;
  
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/junit/junit --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.12&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- https://mvnrepository.com/artifact/log4j/log4j --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.17&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;mysql&lt;/groupId&gt;
              &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
              &lt;version&gt;8.0.12&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- https://mvnrepository.com/artifact/postgresql/postgresql --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;postgresql&lt;/groupId&gt;
              &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
              &lt;version&gt;9.1-901-1.jdbc4&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;!-- https://mvnrepository.com/artifact/org.jboss.spec.javax.transaction/jboss-transaction-api_1.2_spec --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.spec.javax.transaction&lt;/groupId&gt;
              &lt;artifactId&gt;jboss-transaction-api_1.2_spec&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-jpa-2.1-api&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.jboss.narayana.jta/narayana-jta --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jboss.narayana.jta&lt;/groupId&gt;
              &lt;artifactId&gt;narayana-jta&lt;/artifactId&gt;
              &lt;version&gt;5.4.0.Final&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- https://mvnrepository.com/artifact/org.jboss/jboss-transaction-spi --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.jboss&lt;/groupId&gt;
              &lt;artifactId&gt;jboss-transaction-spi&lt;/artifactId&gt;
              &lt;version&gt;7.6.0.Final&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;com.googlecode.json-simple&lt;/groupId&gt;
              &lt;artifactId&gt;json-simple&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
          &lt;/dependency&gt;
  
  
      &lt;/dependencies&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;/properties&gt;
  &lt;/project&gt;
  </code></pre>