Spring Data configuration - hibernate.properties not found
<p>I try to configure Spring Data with Hibernate in-memory database, based on <a href="https://stackoverflow.com/a/25066939/3368498">this</a> and <a href="https://stackoverflow.com/a/32520461/3368498">this</a> answers:</p>

<pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:jpa="http://www.springframework.org/schema/data/jpa"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:jdbc="http://www.springframework.org/schema/jdbc"
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/data/jpa
http://www.springframework.org/schema/data/jpa/spring-jpa-1.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.1.xsd

   http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd"&gt;

&lt;!-- Configure the data source bean --&gt;
&lt;jdbc:embedded-database id="dataSource" type="HSQL"&gt;
&lt;/jdbc:embedded-database&gt;

&lt;!-- Create default configuration for Hibernate --&gt;
&lt;bean id="hibernateJpaVendorAdapter"
      class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"&gt;
    &lt;property name="generateDdl" value="false"&gt;
    &lt;/property&gt;
&lt;/bean&gt;

&lt;!-- Configure the entity manager factory bean --&gt;
&lt;bean id="entityManagerFactory"
      class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"&gt;
    &lt;property name="dataSource" ref="dataSource"/&gt;
    &lt;property name="jpaVendorAdapter" ref="hibernateJpaVendorAdapter"/&gt;
    &lt;property name="persistenceUnitName" value="punit"/&gt;
    &lt;property name="jpaPropertyMap"&gt;
        &lt;map&gt;
            &lt;entry key="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"&gt;&lt;/entry&gt;
            &lt;entry key="hibernate.hbm2ddl.auto" value="create"&gt;&lt;/entry&gt;
            &lt;entry key="hibernate.show_sql" value="true"&gt;&lt;/entry&gt;
        &lt;/map&gt;
    &lt;/property&gt;
    &lt;property name="packagesToScan" value="models"/&gt;
    &lt;property name="sharedCacheMode" value="ENABLE_SELECTIVE"/&gt;
    &lt;property name="validationMode" value="NONE"/&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;tx:annotation-driven/&gt;
&lt;jpa:repositories base-package="beans.repositories"/&gt;
</code></pre>

<p>
But over and over again I get:</p>

<blockquote>
  <p>org.hibernate.cfg.Environment. HHH000206: hibernate.properties not found</p>
</blockquote>

<p>Problem is that I don't want to specify it in <code>properties</code> file, as I used to without Spring Data I want to set it in <code>xml</code> configuration, like in answers which I base. Am I missing something? Thank you in advance for every help.</p>