1 Reply Latest reply on Jul 24, 2016 7:49 AM by mayerw01

    Setting up Spring Data JPA

    royibernthal

      I'm trying to set up Spring Data JPA in my Eclipse Dynamic Web Project.

       

      Intro (you can skip to the actual question if you'd like)

       

      I tried following several tutorials such as:

      Getting Started · Accessing Data with JPA

       

      and build it using Gradle - even though I'd really prefer not having to use Gradle / Mave.

       

      references to spring's libraries are not found in my classes and everything looks like one big mess.

       

      Question

       

      What would be the most straightforward way to install and use Spring Data JPA in an Eclipse project with Wildfly? Hopefully without having to use Gradle / Maven.

        • 1. Re: Setting up Spring Data JPA
          mayerw01

          As mentioned in Spring Data JPA the recommended way to get started using spring-data-jpa in your project is with a dependency management system.

          So you may just copy the dependency into your BOM

           

          <dependencies>

              <dependency>

                  <groupId>org.springframework.data</groupId>

                  <artifactId>spring-data-jpa</artifactId>

                  <version>1.10.2.RELEASE</version>

              </dependency>

          </dependencies>

           

          But it should also be possible to use Spring Data JPA without Maven. You may eg download the jar from Download spring-data-jpa-1.3.0.RELEASE.jar : spring data « s « Jar File Download

          and then add the jar (eg spring-data-jpa-1.3.0.RELEASE.jar) into your project (via Build Path -> Configure Build Path -> Add External JARS).