Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/griffio/spring-data-jpa-example01
spring-data-jpa-example01
https://github.com/griffio/spring-data-jpa-example01
Last synced: 8 days ago
JSON representation
spring-data-jpa-example01
- Host: GitHub
- URL: https://github.com/griffio/spring-data-jpa-example01
- Owner: griffio
- Created: 2012-11-18T21:20:02.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-05-29T05:20:08.000Z (over 8 years ago)
- Last Synced: 2024-04-16T18:27:03.072Z (7 months ago)
- Language: Java
- Size: 190 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## spring-data-jpa-example01
### Spring 4, Spring Data JPA and QueryDsl
Using spring.dependency-management and spring data release train version
~~~groovy
plugins {
id "java"
id "io.spring.dependency-management" version "0.5.2.RELEASE"
id "com.ewerk.gradle.plugins.querydsl" version "1.0.5"
}repositories {
jcenter()
}dependencyManagement {
//For Spring Framework a plain version is used. For Spring Data we refer to a particular revision of a release train.
imports {
mavenBom "org.springframework:spring-framework-bom:$springVersion"
mavenBom "org.springframework.data:spring-data-releasetrain:$springdataVersion"
}
}
~~~Using Java Config for Spring
[com.ewerk.gradle.plugins.querydsl](https://github.com/ewerk/gradle-plugins/tree/master/plugins/querydsl-plugin) is used to generated Querydsl models.
### Gradle
~~~
./gradlew compileJava
~~~~~~
./gradlew test
~~~When there are several large frameworks in use, to manage transitive dependencies, it is easier to use group overrides to specify the exact version with a fail on conflict mode, to be notified of any corrections, rather than adding 'force' or 'excludes' at the dependency level.