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>1.0.2</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 {

    compile 'com.speedment.jpastreamer:jpastreamer-core:1.0.2'

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

}


sourceSets { 
    main {
        java {
            srcDir 'src/main/java'
            srcDir 'target/generated-sources/annotations'
        }
    }
}

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

Requirements

  • Java 8 or later
  • Project must conform to standard JPA (representing tables as Entities etc.)