Skip to content

Commit b2b3db5

Browse files
committed
cleanup and persistence work
1 parent 1dc78c6 commit b2b3db5

10 files changed

Lines changed: 26 additions & 40 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Resources
22
- [REST With Spring] (http://bit.ly/restwithspring)
3-
- Continuous Integration: [CI on Cloudbees](https://rest-security.ci.cloudbees.com)
3+
- Continuous Integration: [CI on Cloudbees](https://rest-security.ci.cloudbees.com/view/REST-With-Spring/)
44

55

66
# Quick Start
@@ -10,27 +10,13 @@ cd REST-With-Spring
1010
mvn clean install
1111
mvn cargo:run -f um-webapp/pom.xml
1212
```
13-
- **next**: start consuming the service like so: [REST API: Consuming Examples with `curl`](https://github.com/eugenp/REST/wiki/REST-API%3A-Consuming-Examples-with-%60curl%60)
14-
15-
16-
# Goals
17-
**REST With Spring** is a proof of concept implementation of a RESTful Service. <br/>
18-
The project also provides a reference implementation for:
19-
- REST Discoverability and HATEOAS <br/>
20-
- Basic and Digest Authentication <br/>
21-
- ETag support
22-
- support for Multiple Representations (on the same URIs) (JSON, XML) <br/>
23-
- a full REST based Query Language for advanced filtering of resources <br/>
24-
- Sorting and Pagination in REST <br/>
25-
- Statelessness for REST with Spring <br/>
26-
- full integration testing suites at every layer: unit tests, integration tests for the DAO and Service layers, integration tests against the REST service <br/>
2713

2814

2915
# Technology Stack
3016
The project uses the following technologies: <br/>
3117
- **web/REST**: [Spring](http://www.springsource.org/) 4.2.x <br/>
32-
- **marshalling**: [Jackson](https://github.com/FasterXML/jackson-databind) 2.x (for JSON) and [XStream](http://xstream.codehaus.org/) (for XML) <br/>
33-
- **persistence**: [Spring Data JPA](http://www.springsource.org/spring-data/jpa) and [Hibernate](http://www.hibernate.org/) 4.1.x <br/>
18+
- **marshalling**: [Jackson](https://github.com/FasterXML/jackson-databind) 2.x (for JSON) and the new [Jackson XML extension](https://github.com/FasterXML/jackson-dataformat-xml) (for XML) <br/>
19+
- **persistence**: [Spring Data JPA](http://www.springsource.org/spring-data/jpa) and [Hibernate](http://www.hibernate.org/) <br/>
3420
- **persistence providers**: H2, MySQL
3521
- **testing**: [junit](http://www.junit.org/), [hamcrest](http://code.google.com/p/hamcrest/), [mockito](http://code.google.com/p/mockito/), [rest-assured](http://code.google.com/p/rest-assured/) <br/>
3622

@@ -42,4 +28,4 @@ The project uses the following technologies: <br/>
4228

4329

4430
# Eclipse
45-
- see the [Eclipse wiki page](https://github.com/eugenp/REST/wiki/Eclipse:-Setup-and-Configuration) of this project
31+
- see the [Eclipse wiki page](https://github.com/eugenp/REST-With-Spring/wiki/Eclipse:-Setup-and-Configuration) of this project

‎common-client/pom.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.baeldung</groupId>
88
<artifactId>user-management-parent</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>1.0.1-SNAPSHOT</version>
1010
<relativePath>..</relativePath>
1111
</parent>
1212

@@ -17,7 +17,7 @@
1717
<dependency>
1818
<groupId>org.baeldung</groupId>
1919
<artifactId>common</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
20+
<version>1.0.1-SNAPSHOT</version>
2121
</dependency>
2222

2323
<!-- util -->

‎common-test/pom.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.baeldung</groupId>
99
<artifactId>user-management-parent</artifactId>
10-
<version>1.0.0-SNAPSHOT</version>
10+
<version>1.0.1-SNAPSHOT</version>
1111
</parent>
1212

1313
<dependencies>
@@ -17,7 +17,7 @@
1717
<dependency>
1818
<groupId>org.baeldung</groupId>
1919
<artifactId>common-client</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
20+
<version>1.0.1-SNAPSHOT</version>
2121
</dependency>
2222

2323
<!-- web -->

‎common/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.baeldung</groupId>
88
<artifactId>user-management-parent</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>1.0.1-SNAPSHOT</version>
1010
<relativePath>..</relativePath>
1111
</parent>
1212

‎pom.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>org.baeldung</groupId>
55
<artifactId>user-management-parent</artifactId>
6-
<version>1.0.0-SNAPSHOT</version>
6+
<version>1.0.1-SNAPSHOT</version>
77
<packaging>pom</packaging>
88

99
<name>user-management-parent</name>
@@ -146,7 +146,7 @@
146146
<!-- persistence -->
147147
<hibernate-jpamodelgen.version>5.0.5.Final</hibernate-jpamodelgen.version>
148148
<querydsl.version>4.0.7</querydsl.version>
149-
<spring-data-jpa.version>1.9.1.RELEASE</spring-data-jpa.version>
149+
<spring-data-jpa.version>1.9.2.RELEASE</spring-data-jpa.version>
150150

151151
<h2.version>1.4.190</h2.version>
152152
<hsqldb.version>2.3.3</hsqldb.version>

‎um-client/pom.xml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.baeldung</groupId>
88
<artifactId>user-management-parent</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>1.0.1-SNAPSHOT</version>
1010
<relativePath>..</relativePath>
1111
</parent>
1212

@@ -17,13 +17,13 @@
1717
<dependency>
1818
<groupId>org.baeldung</groupId>
1919
<artifactId>common-client</artifactId>
20-
<version>1.0.0-SNAPSHOT</version>
20+
<version>1.0.1-SNAPSHOT</version>
2121
</dependency>
2222

2323
<dependency>
2424
<groupId>org.baeldung</groupId>
2525
<artifactId>common-test</artifactId>
26-
<version>1.0.0-SNAPSHOT</version>
26+
<version>1.0.1-SNAPSHOT</version>
2727
<scope>test</scope>
2828
</dependency>
2929

‎um-ui/pom.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>org.baeldung</groupId>
77
<artifactId>um-ui</artifactId>
8-
<version>1.0.0-SNAPSHOT</version>
8+
<version>1.0.1-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010

1111
<name>um-ui</name>
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.springframework.boot</groupId>
1616
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>1.3.0.RELEASE</version>
17+
<version>1.3.2.RELEASE</version>
1818
<relativePath /> <!-- lookup parent from repository -->
1919
</parent>
2020

‎um-webapp/.settings/org.eclipse.wst.common.component‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
55
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
66
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
7-
<dependent-module archiveName="common-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/common/common">
7+
<dependent-module archiveName="common-1.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/common/common">
88
<dependency-type>uses</dependency-type>
99
</dependent-module>
10-
<dependent-module archiveName="common-client-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/common-client/common-client">
10+
<dependent-module archiveName="common-client-1.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/common-client/common-client">
1111
<dependency-type>uses</dependency-type>
1212
</dependent-module>
13-
<dependent-module archiveName="um-client-1.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/um-client/um-client">
13+
<dependent-module archiveName="um-client-1.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/um-client/um-client">
1414
<dependency-type>uses</dependency-type>
1515
</dependent-module>
1616
<property name="java-output-path" value="/rest/target/classes"/>

‎um-webapp/pom.xml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<groupId>org.baeldung</groupId>
1111
<artifactId>user-management-parent</artifactId>
12-
<version>1.0.0-SNAPSHOT</version>
12+
<version>1.0.1-SNAPSHOT</version>
1313
</parent>
1414

1515
<dependencies>
@@ -19,34 +19,34 @@
1919
<dependency>
2020
<groupId>org.baeldung</groupId>
2121
<artifactId>common</artifactId>
22-
<version>1.0.0-SNAPSHOT</version>
22+
<version>1.0.1-SNAPSHOT</version>
2323
</dependency>
2424

2525
<dependency>
2626
<groupId>org.baeldung</groupId>
2727
<artifactId>common-client</artifactId>
28-
<version>1.0.0-SNAPSHOT</version>
28+
<version>1.0.1-SNAPSHOT</version>
2929
<scope>test</scope>
3030
<classifier>tests</classifier>
3131
</dependency>
3232

3333
<dependency>
3434
<groupId>org.baeldung</groupId>
3535
<artifactId>common-test</artifactId>
36-
<version>1.0.0-SNAPSHOT</version>
36+
<version>1.0.1-SNAPSHOT</version>
3737
<scope>test</scope>
3838
</dependency>
3939

4040
<dependency>
4141
<groupId>org.baeldung</groupId>
4242
<artifactId>um-client</artifactId>
43-
<version>1.0.0-SNAPSHOT</version>
43+
<version>1.0.1-SNAPSHOT</version>
4444
</dependency>
4545

4646
<dependency>
4747
<groupId>org.baeldung</groupId>
4848
<artifactId>um-client</artifactId>
49-
<version>1.0.0-SNAPSHOT</version>
49+
<version>1.0.1-SNAPSHOT</version>
5050
<scope>test</scope>
5151
<classifier>tests</classifier>
5252
</dependency>

‎um-webapp/src/main/java/org/baeldung/um/spring/UmPersistenceJpaConfig.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@Configuration
2222
@EnableTransactionManagement
2323
@ComponentScan({ "org.baeldung.um.persistence" })
24-
@PropertySource({ "classpath:persistence-${persistenceTarget:mysql}.properties" })
24+
@PropertySource({ "classpath:persistence-${persistenceTarget:h2}.properties" })
2525
@EnableJpaRepositories(basePackages = "org.baeldung.um.persistence.dao")
2626
public class UmPersistenceJpaConfig {
2727

0 commit comments

Comments
 (0)