Skip to content

Commit ab281de

Browse files
phasenraum2010phasenraum2010
phasenraum2010
authored and
phasenraum2010
committed
JPA with PostgreSQL
1 parent 6e3aedf commit ab281de

File tree

97 files changed

+1328
-425
lines changed

Some content is hidden

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

97 files changed

+1328
-425
lines changed

.editorconfig

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
continuation_indent_size = 8
10+
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
15+
16+
[*.java]
17+
charset = utf-8
18+
end_of_line = lf
19+
indent_size = 4
20+
continuation_indent_size = 4
21+
indent_style = space
22+
insert_final_newline = true
23+
trim_trailing_whitespace = true
24+
25+
[*.md]
26+
trim_trailing_whitespace = false
27+
28+
[*.yml]
29+
charset = utf-8
30+
end_of_line = lf
31+
indent_size = 2
32+
continuation_indent_size = 2
33+
indent_style = space
34+
insert_final_newline = false
35+
trim_trailing_whitespace = true
36+
37+
[LICENSE.code.txt]
38+
charset = utf-8
39+
end_of_line = lf
40+
indent_size = 3
41+
indent_style = space
42+
insert_final_newline = false
43+
trim_trailing_whitespace = true

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@
178178
APPENDIX: How to apply the Apache License to your work.
179179

180180
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
181+
boilerplate notice, with the fields enclosed by brackets "{}"
182182
replaced with your own identifying information. (Don't include
183183
the brackets!) The text should be enclosed in the appropriate
184184
comment syntax for the file format. We also recommend that a
185185
file or class name and description of purpose be included on the
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright {yyyy} {name of copyright owner}
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

LICENSE.code.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 2017 Thomas Woehlke
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

LICENSE.writing.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Except where otherwise noted, this work is licensed under http://creativecommons.org/licenses/by-nd/3.0/

build.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
#!/usr/bin/env bash
22

3-
SKIP_TESTS=" -DskipTests"
4-
5-
./mvnw clean install dependency:tree $SKIP_TESTS
3+
./mvnw clean install dependency:tree

pom.xml

+202-29
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<name>learn-neo4j</name>
1212
<description>Demo project for Spring Boot</description>
13-
<url>http://localhost/mvn/learn-neo4j</url>
13+
<url>http://localhost/mvn/learn-neo4j</url>
1414

1515
<parent>
1616
<groupId>org.springframework.boot</groupId>
@@ -19,10 +19,54 @@
1919
<relativePath/> <!-- lookup parent from repository -->
2020
</parent>
2121

22+
<organization>
23+
<name>Thomas Woehlke</name>
24+
<url>https://twitter.com/ThomasWoehlke</url>
25+
</organization>
26+
27+
<inceptionYear>2018</inceptionYear>
28+
29+
<licenses>
30+
<license>
31+
<name>Apache License, Version 2.0</name>
32+
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
33+
</license>
34+
</licenses>
35+
36+
<developers>
37+
<developer>
38+
<name>Thomas Wöhlke</name>
39+
<email>thomas@woehlke.org</email>
40+
<url>https://github.com/phasenraum2010</url>
41+
</developer>
42+
</developers>
43+
44+
<scm>
45+
<url>https://github.com/phasenraum2010/learn-neo4j.git</url>
46+
<connection>scm:git:https://github.com/phasenraum2010/learn-neo4j.git</connection>
47+
<developerConnection>scm:git:https://github.com/phasenraum2010/learn-neo4j.git</developerConnection>
48+
<tag>master</tag>
49+
</scm>
50+
51+
<issueManagement>
52+
<system>GitHub</system>
53+
<url>https://github.com/phasenraum2010/btw17kandidaten/issues</url>
54+
</issueManagement>
55+
56+
<distributionManagement>
57+
<site>
58+
<id>simpleworklist.shadowfax.fritz.box</id>
59+
<url>file://${project.basedir}/target/site-deployed</url>
60+
</site>
61+
</distributionManagement>
62+
2263
<properties>
2364
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2465
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2566
<java.version>1.8</java.version>
67+
<maven.scm.version>1.9.5</maven.scm.version>
68+
<failsafe.skipAfterFailureCount>1</failsafe.skipAfterFailureCount>
69+
<surefire.skipAfterFailureCount>1</surefire.skipAfterFailureCount>
2670
</properties>
2771

2872
<dependencies>
@@ -88,19 +132,9 @@
88132
<groupId>org.springframework.boot</groupId>
89133
<artifactId>spring-boot-starter-data-jpa</artifactId>
90134
</dependency>
91-
<!--
92-
<dependency>
93-
<groupId>mysql</groupId>
94-
<artifactId>mysql-connector-java</artifactId>
95-
</dependency>
96-
-->
97-
<!-- https://mvnrepository.com/artifact/org.postgresql/postgresql -->
98135
<dependency>
99136
<groupId>org.postgresql</groupId>
100137
<artifactId>postgresql</artifactId>
101-
<!--
102-
<version>42.2.2</version>
103-
-->
104138
</dependency>
105139
<dependency>
106140
<groupId>org.springframework.data</groupId>
@@ -110,7 +144,6 @@
110144
<groupId>org.springframework.session</groupId>
111145
<artifactId>spring-session-core</artifactId>
112146
</dependency>
113-
114147
<dependency>
115148
<groupId>org.neo4j</groupId>
116149
<artifactId>neo4j-ogm-api</artifactId>
@@ -123,7 +156,6 @@
123156
<groupId>org.neo4j</groupId>
124157
<artifactId>neo4j-ogm-core</artifactId>
125158
</dependency>
126-
127159
<dependency>
128160
<groupId>org.projectlombok</groupId>
129161
<artifactId>lombok</artifactId>
@@ -133,13 +165,6 @@
133165
<artifactId>spring-boot-devtools</artifactId>
134166
<scope>runtime</scope>
135167
</dependency>
136-
<!--
137-
<dependency>
138-
<groupId>com.h2database</groupId>
139-
<artifactId>h2</artifactId>
140-
<scope>runtime</scope>
141-
</dependency>
142-
-->
143168
<dependency>
144169
<groupId>org.springframework.boot</groupId>
145170
<artifactId>spring-boot-starter-test</artifactId>
@@ -155,7 +180,6 @@
155180
<artifactId>spring-restdocs-mockmvc</artifactId>
156181
<scope>test</scope>
157182
</dependency>
158-
159183
<dependency>
160184
<groupId>org.thymeleaf</groupId>
161185
<artifactId>thymeleaf-spring5</artifactId>
@@ -164,13 +188,28 @@
164188
<groupId>org.thymeleaf.extras</groupId>
165189
<artifactId>thymeleaf-extras-java8time</artifactId>
166190
</dependency>
167-
168-
<dependency>
169-
<groupId>org.springframework</groupId>
170-
<artifactId>spring-webmvc</artifactId>
171-
<scope>compile</scope>
172-
</dependency>
173-
</dependencies>
191+
<dependency>
192+
<groupId>org.springframework.boot</groupId>
193+
<artifactId>spring-boot-starter-logging</artifactId>
194+
</dependency>
195+
<dependency>
196+
<groupId>org.springframework.boot</groupId>
197+
<artifactId>spring-boot-configuration-processor</artifactId>
198+
<optional>true</optional>
199+
</dependency>
200+
<dependency>
201+
<groupId>org.springframework.session</groupId>
202+
<artifactId>spring-session-jdbc</artifactId>
203+
</dependency>
204+
<dependency>
205+
<groupId>org.springframework.boot</groupId>
206+
<artifactId>spring-boot-starter-jdbc</artifactId>
207+
</dependency>
208+
<dependency>
209+
<groupId>org.springframework.boot</groupId>
210+
<artifactId>spring-boot-starter-security</artifactId>
211+
</dependency>
212+
</dependencies>
174213

175214
<build>
176215
<plugins>
@@ -188,5 +227,139 @@
188227
</plugin>
189228
</plugins>
190229
</build>
191-
230+
231+
<profiles>
232+
<profile>
233+
<id>default</id>
234+
<activation>
235+
<activeByDefault>true</activeByDefault>
236+
</activation>
237+
<build>
238+
<plugins>
239+
<plugin>
240+
<groupId>org.apache.maven.plugins</groupId>
241+
<artifactId>maven-surefire-plugin</artifactId>
242+
<configuration>
243+
<skipTests>true</skipTests>
244+
</configuration>
245+
</plugin>
246+
</plugins>
247+
</build>
248+
</profile>
249+
<profile>
250+
<id>travis</id>
251+
<build>
252+
<plugins>
253+
<plugin>
254+
<groupId>org.apache.maven.plugins</groupId>
255+
<artifactId>maven-surefire-plugin</artifactId>
256+
<configuration>
257+
<systemPropertyVariables>
258+
<spring.profiles.active>travis</spring.profiles.active>
259+
<failsafe.skipAfterFailureCount>1</failsafe.skipAfterFailureCount>
260+
<surefire.skipAfterFailureCount>1</surefire.skipAfterFailureCount>
261+
</systemPropertyVariables>
262+
</configuration>
263+
</plugin>
264+
</plugins>
265+
</build>
266+
</profile>
267+
<profile>
268+
<id>devtest</id>
269+
<build>
270+
<plugins>
271+
<plugin>
272+
<groupId>org.apache.maven.plugins</groupId>
273+
<artifactId>maven-surefire-plugin</artifactId>
274+
<configuration>
275+
<systemPropertyVariables>
276+
<spring.profiles.active>devtest</spring.profiles.active>
277+
<failsafe.skipAfterFailureCount>1</failsafe.skipAfterFailureCount>
278+
<surefire.skipAfterFailureCount>1</surefire.skipAfterFailureCount>
279+
</systemPropertyVariables>
280+
</configuration>
281+
</plugin>
282+
</plugins>
283+
</build>
284+
</profile>
285+
</profiles>
286+
<reporting>
287+
<plugins>
288+
<plugin>
289+
<groupId>org.apache.maven.plugins</groupId>
290+
<artifactId>maven-project-info-reports-plugin</artifactId>
291+
<version>2.9</version>
292+
<configuration>
293+
<dependencyDetailsEnabled>true</dependencyDetailsEnabled>
294+
<dependencyLocationsEnabled>true</dependencyLocationsEnabled>
295+
</configuration>
296+
</plugin>
297+
<plugin>
298+
<groupId>org.apache.maven.plugins</groupId>
299+
<artifactId>maven-surefire-report-plugin</artifactId>
300+
<version>2.20</version>
301+
</plugin>
302+
<plugin>
303+
<groupId>org.apache.maven.plugins</groupId>
304+
<artifactId>maven-checkstyle-plugin</artifactId>
305+
<version>2.17</version>
306+
</plugin>
307+
<plugin>
308+
<groupId>org.codehaus.mojo</groupId>
309+
<artifactId>findbugs-maven-plugin</artifactId>
310+
<version>3.0.4</version>
311+
<configuration>
312+
<onlyAnalyze>org.woehlke.*</onlyAnalyze>
313+
<omitVisitors>FindDeadLocalStores</omitVisitors>
314+
<findbugsXmlOutput>true</findbugsXmlOutput>
315+
<xmlOutputDirectory>target/site</xmlOutputDirectory>
316+
<effort>Max</effort>
317+
<threshold>Low</threshold>
318+
</configuration>
319+
</plugin>
320+
<plugin>
321+
<groupId>org.apache.maven.plugins</groupId>
322+
<artifactId>maven-jxr-plugin</artifactId>
323+
<version>2.5</version>
324+
</plugin>
325+
<plugin>
326+
<groupId>org.apache.maven.plugins</groupId>
327+
<artifactId>maven-pmd-plugin</artifactId>
328+
<version>3.8</version>
329+
<configuration>
330+
<sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
331+
<minimumTokens>100</minimumTokens>
332+
<targetJdk>${java.version}</targetJdk>
333+
<excludeRoots>
334+
<excludeRoot>target</excludeRoot>
335+
</excludeRoots>
336+
</configuration>
337+
</plugin>
338+
<plugin>
339+
<groupId>org.codehaus.mojo</groupId>
340+
<artifactId>taglist-maven-plugin</artifactId>
341+
<version>2.4</version>
342+
</plugin>
343+
<plugin>
344+
<groupId>org.apache.maven.plugins</groupId>
345+
<artifactId>maven-changes-plugin</artifactId>
346+
<version>2.12.1</version>
347+
<configuration>
348+
<onlyMilestoneIssues>false</onlyMilestoneIssues>
349+
</configuration>
350+
<reportSets>
351+
<reportSet>
352+
<reports>
353+
<report>github-report</report>
354+
</reports>
355+
</reportSet>
356+
</reportSets>
357+
</plugin>
358+
<plugin>
359+
<groupId>org.codehaus.mojo</groupId>
360+
<artifactId>cobertura-maven-plugin</artifactId>
361+
<version>2.7</version>
362+
</plugin>
363+
</plugins>
364+
</reporting>
192365
</project>

0 commit comments

Comments
 (0)