JPAstreamer-logo

Quick Start Installation

Maven


pom.xml

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

<dependencies>

    <dependency>
        <groupId>com.speedment.jpastreamer</groupId>
        <artifactId>jpastreamer-core</artifactId>

        <version>3.0.4</version>
    </dependency>

</dependencies>

<plugins>
    <plugin> 
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>3.2.0</version>
        <executions>
            <execution>   
                <phase>generate-sources</phase>
                <goals>
                    <goal>add-source</goal>
                </goals>
                <configuration>
                    <sources>
                        <source>

                            ${project.build.directory}/generated-sources/annotations

                        </source>
                    </sources>
                </configuration>
            </execution>
        </executions>
    </plugin>
</plugins>

Gradle


build.gradle

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

repositories {

    mavenCentral()

}


dependencies {

    implementation 'com.speedment.jpastreamer:jpastreamer-core:3.0.4'

    annotationProcessor 'com.speedment.jpastreamer:fieldgenerator-standard:3.0.4'

}


sourceSets { 
    main {
        java {
            srcDir 'src/main/java'
            srcDir 'build/generated/sources/annotationProcessor'
        }
    }
}

Continue with the Getting Started with JPA Streamer guide for further instructions. 

Requirements

  • Java 11 or later
  • The project must conform to standard JPA (representing tables as Entities etc.)