Skip to content

Commit 9698743

Browse files
authored
feat: extract example JPA models into separate resusable modules (#104)
* feat: extract JPA entities into separate modules * fix: update model pom versions * chore: rename example modules and models * fix: add graphql-jpa-query-example-simple in Dockerfile * fix: merge conflicts
1 parent b05c246 commit 9698743

File tree

43 files changed

+104
-594
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+104
-594
lines changed

graphql-jpa-query-build/pom.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,20 @@
1919
<type>pom</type>
2020
<scope>import</scope>
2121
</dependency>
22+
23+
<dependency>
24+
<groupId>com.introproventures</groupId>
25+
<artifactId>graphql-jpa-query-example-model-starwars</artifactId>
26+
<version>${project.version}</version>
27+
</dependency>
2228

23-
</dependencies>
29+
<dependency>
30+
<groupId>com.introproventures</groupId>
31+
<artifactId>graphql-jpa-query-example-model-books</artifactId>
32+
<version>${project.version}</version>
33+
</dependency>
2434

35+
</dependencies>
2536
</dependencyManagement>
2637

2738
<dependencies>

graphql-jpa-query-example-merge/pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@
1818

1919
<dependencies>
2020

21+
<dependency>
22+
<groupId>com.introproventures</groupId>
23+
<artifactId>graphql-jpa-query-example-model-books</artifactId>
24+
</dependency>
25+
26+
<dependency>
27+
<groupId>com.introproventures</groupId>
28+
<artifactId>graphql-jpa-query-example-model-starwars</artifactId>
29+
</dependency>
30+
2131
<dependency>
2232
<groupId>com.introproventures</groupId>
2333
<artifactId>graphql-jpa-query-web</artifactId>

graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/books/Author.java

Lines changed: 0 additions & 38 deletions
This file was deleted.

graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/books/Book.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/books/BooksSchemaConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.introproventures.graphql.jpa.query.autoconfigure.GraphQLSchemaConfigurer;
1212
import com.introproventures.graphql.jpa.query.autoconfigure.GraphQLShemaRegistration;
1313
import com.introproventures.graphql.jpa.query.schema.impl.GraphQLJpaSchemaBuilder;
14+
import com.introproventures.graphql.jpa.query.schema.model.book.Book;
1415
import org.hibernate.cfg.AvailableSettings;
1516
import org.hibernate.dialect.H2Dialect;
1617
import org.springframework.beans.factory.annotation.Autowired;

graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/books/Genre.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/starwars/Character.java

Lines changed: 0 additions & 69 deletions
This file was deleted.

graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/starwars/CodeList.java

Lines changed: 0 additions & 48 deletions
This file was deleted.

graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/starwars/Droid.java

Lines changed: 0 additions & 40 deletions
This file was deleted.

graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/starwars/Episode.java

Lines changed: 0 additions & 29 deletions
This file was deleted.

graphql-jpa-query-example-merge/src/main/java/com/introproventures/graphql/jpa/query/example/starwars/Human.java

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)