Skip to content

Commit

Permalink
Add Spring Data JPA
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-adam committed Apr 4, 2024
1 parent 5974f75 commit 5def87a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ For further reference, please consider the following sections:
* [Spring for GraphQL](https://docs.spring.io/spring-boot/docs/3.2.4/reference/htmlsingle/index.html#web.graphql)
* [Spring HATEOAS](https://docs.spring.io/spring-boot/docs/3.2.4/reference/htmlsingle/index.html#web.spring-hateoas)
* [Vaadin](https://vaadin.com/docs)
* [Spring Data JPA](https://docs.spring.io/spring-boot/docs/3.2.4/reference/htmlsingle/index.html#data.sql.jpa-and-spring-data)

### Guides
The following guides illustrate how to use some features concretely:
Expand All @@ -26,6 +27,7 @@ The following guides illustrate how to use some features concretely:
* [Building a GraphQL service](https://spring.io/guides/gs/graphql-server/)
* [Building a Hypermedia-Driven RESTful Web Service](https://spring.io/guides/gs/rest-hateoas/)
* [Creating CRUD UI with Vaadin](https://spring.io/guides/gs/crud-with-vaadin/)
* [Accessing Data with JPA](https://spring.io/guides/gs/accessing-data-jpa/)

### Additional Links
These additional references should also help you:
Expand Down
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ plugins {
id("org.springframework.boot") version "3.2.4"
id("io.spring.dependency-management") version "1.1.4"
id("com.netflix.dgs.codegen") version "6.0.3"
id("org.hibernate.orm") version "6.4.4.Final"
id("org.graalvm.buildtools.native") version "0.9.28"
id("com.vaadin") version "24.3.9"
kotlin("jvm") version "1.9.23"
kotlin("plugin.spring") version "1.9.23"
kotlin("plugin.jpa") version "1.9.23"
}

group = "pl.writeonly"
Expand All @@ -30,6 +32,7 @@ repositories {
extra["vaadinVersion"] = "24.3.9"

dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-graphql")
implementation("org.springframework.boot:spring-boot-starter-hateoas")
implementation("org.springframework.boot:spring-boot-starter-web")
Expand Down Expand Up @@ -72,3 +75,9 @@ tasks.generateJava {
generateClient = true
}

hibernate {
enhancement {
enableAssociationManagement.set(true)
}
}

0 comments on commit 5def87a

Please sign in to comment.