title: JPA - No persistence.xml file found in project
body: <p>I am on my way to configure hibernate. I have generated a <code>persistance.xml</code> file, which is configured the following.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"&gt;
          &lt;persistence-unit name="default" transaction-type="RESOURCE_LOCAL"&gt;
          &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
          &lt;properties&gt;
              &lt;property name="hibernate.archive.autodetection" value="class, hbm" /&gt;
              &lt;property name="hibernate.show_sql" value="false" /&gt;
              &lt;property name="hibernate.format_sql" value="true" /&gt;
  
              &lt;property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" /&gt;
              &lt;property name="hibernate.hbm2ddl.auto" value="create-drop" /&gt;
  
              &lt;property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" /&gt;
              &lt;property name="hibernate.connection.url" value="jdbc:hsqldb:mem:." /&gt;
              &lt;property name="hibernate.connection.username" value="SA" /&gt;
              &lt;property name="hibernate.connection.password" value="" /&gt;
  
              &lt;property name="hibernate.c3p0.min_size" value="5" /&gt;
              &lt;property name="hibernate.c3p0.max_size" value="20" /&gt;
              &lt;property name="hibernate.c3p0.timeout" value="300" /&gt;
              &lt;property name="hibernate.c3p0.max_statements" value="50" /&gt;
              &lt;property name="hibernate.c3p0.idle_test_period" value="3000" /&gt;
  
          &lt;/properties&gt;
      &lt;/persistence-unit&gt;
  &lt;/persistence&gt;
  </code></pre>
  
  <p>Furthermore, I have added spring &amp; hibernate to the pom.xml file. However, my test class, Register.java is not created in the data base:</p>
  
  <pre><code>@Entity
  public class Register implements Serializable{
  
      /**
       * UUID
       */
      private static final long serialVersionUID = 1L;
  
      /**
       * ID
       */
      @Id
      @GeneratedValue
      private Long id;
  
      /**
       * user Email
       * 
       */
      @NotNull
      @Pattern(regexp = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@" + "[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$", message = "please enter your email address")
      @Column(name="user_email")
      private String userEmail;
  
      /**
       *first name
       */
      @NotNull
      @Pattern(regexp = "[A-Za-z ]*", message = "please enter your first name")
      @Column(name="first_Name")
      private String firstName;
  
      /**
       * last name
       */
      @NotNull
      @Pattern(regexp = "[A-Za-z ]*", message = "please enter your last name")
      @Column(name="last_Name")
      private String lastName;
  
      /**
       * Date when the product is created
       */
      @NotNull
      @Column(name="creation_date")
      private Date creationDate = new Date();
  
      /**
       * @return the id
       */
      public Long getId() {
          return id;
      }
  
      /**
       * @param id the id to set
       */
      public void setId(Long id) {
          this.id = id;
      }
  
      /**
       * @return the userEmail
       */
      public String getUserEmail() {
          return userEmail;
      }
  
      /**
       * @param userEmail the userEmail to set
       */
      public void setUserEmail(String userEmail) {
          this.userEmail = userEmail;
      }
  
      /**
       * @return the firstName
       */
      public String getFirstName() {
          return firstName;
      }
  
      /**
       * @param firstName the firstName to set
       */
      public void setFirstName(String firstName) {
          this.firstName = firstName;
      }
  
      /**
       * @return the lastName
       */
      public String getLastName() {
          return lastName;
      }
  
      /**
       * @param lastName the lastName to set
       */
      public void setLastName(String lastName) {
          this.lastName = lastName;
      }
  
      /**
       * @return the creationDate
       */
      public Date getCreationDate() {
          return creationDate;
      }
  
      /**
       * @param creationDate the creationDate to set
       */
      public void setCreationDate(Date creationDate) {
          this.creationDate = creationDate;
      }
  
      /**
       * @return the serialversionuid
       */
      public static long getSerialversionuid() {
          return serialVersionUID;
      }
  
  }
  </code></pre>
  
  <p>Furthermore, I am receiving the warning:</p>
  
  <blockquote>
    <p>No connection specified for project. No database-specific validation</p>
  </blockquote>
  
  <p>Any recommendations, what am I doing wrong?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>The <code>applicationContext.xml</code></p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
      xmlns:context="http://www.springframework.org/schema/context"
      xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
      xmlns:jee="http://www.springframework.org/schema/jee"
      xsi:schemaLocation="
                          http://www.springframework.org/schema/beans 
                          http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                          http://www.springframework.org/schema/context
                          http://www.springframework.org/schema/context/spring-context-3.0.xsd
                          http://www.springframework.org/schema/tx 
                          http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
                          http://www.springframework.org/schema/aop 
                          http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
                          http://www.springframework.org/schema/jee 
                          http://www.springframework.org/schema/jee/spring-jee-3.0.xsd"&gt;
  
      &lt;context:component-scan base-package="com.testApp" annotation-config="true" /&gt;
  
      &lt;tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" /&gt;
  
      &lt;bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;
          &lt;property name="persistenceUnitName" value="default" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"&gt;
          &lt;property name="entityManagerFactory" ref="entityManagerFactory" /&gt;
      &lt;/bean&gt;
  
      &lt;bean id="entityManager" class="org.springframework.orm.jpa.support.SharedEntityManagerBean"&gt;
          &lt;property name="entityManagerFactory" ref="entityManagerFactory"/&gt;
      &lt;/bean&gt;
  
      &lt;bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" /&gt;
  
  &lt;/beans&gt;
  </code></pre>