title: Using Spring 4.0 with spring-data-jpa
body: <p>I am using Spring 4.0 in my JavaEE application, and I tried to use the Spring-data-jpa.</p>
  
  <p>However when I add the Spring-data-jpa dependency, I found that the Spring-data-jpa will depend on Spring-3.x.</p>
  
  <p>Then I wonder this will cause any problem? Since my application will have Spring-4.x with Spring-3.x.</p>
  
  <p>Anyone have the same experience? </p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>I am using Spring-data-jpg-1.4.3:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-jpa&lt;/artifactId&gt;
          &lt;version&gt;1.4.3.RELEASE&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>But when I run <code>mvn dependency:tree</code> I got this:</p>
  
  <pre><code>+- org.springframework:spring-context:jar:4.0.0.RELEASE:compile
  |  +- org.springframework:spring-beans:jar:4.0.0.RELEASE:compile
  |  +- org.springframework:spring-core:jar:4.0.0.RELEASE:compile
  |  |  \- commons-logging:commons-logging:jar:1.1.1:compile
  |  \- org.springframework:spring-expression:jar:4.0.0.RELEASE:compile
  +- org.springframework:spring-aop:jar:4.0.0.RELEASE:compile
  |  \- aopalliance:aopalliance:jar:1.0:compile
  +- org.springframework.data:spring-data-jpa:jar:1.4.3.RELEASE:compile
  |  +- org.springframework.data:spring-data-commons:jar:1.6.3.RELEASE:compile
  |  +- org.springframework:spring-orm:jar:3.1.4.RELEASE:compile
  |  |  \- org.springframework:spring-jdbc:jar:3.1.4.RELEASE:compile
  |  +- org.springframework:spring-tx:jar:3.1.4.RELEASE:compile
  |  +- org.aspectj:aspectjrt:jar:1.7.2:compile
  |  +- org.slf4j:slf4j-api:jar:1.7.1:compile
  |  \- org.slf4j:jcl-over-slf4j:jar:1.7.1:runtime
  +- org.aspectj:aspectjweaver:jar:1.7.4:compile
  +- org.springframework:spring-test:jar:4.0.0.RELEASE:test
  </code></pre>
  
  <p>It seems that the spring 4.0.. is mixed with spring 3.1.4..</p>