Skip to content

Commit 83417cf

Browse files
committed
Update to latest versions.
Spring 3.1.0 -> 3.1.1 Spring Data JPA 1.0.3 -> 1.1.0 Maven Surefire Plugin 2.4.3 -> 2.10 Maven Compiler Plugin 2.3 -> 2.5.1 Hsqldb 1.8.0.10 -> 2.2.8 Querydsl APT Plugin 1.0 -> 1.0.3 Querydsl 2.2.5 -> 2.6.0 Hibernate 3.5.6 -> 4.1.4 SLF4j 1.6.1 -> 1.6.6 AspectJ 1.6.8 -> 1.6.12 Joda Time 1.5.2 -> 2.1 Project version 1.1.0
1 parent db66530 commit 83417cf

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>org.springframework.data.jpa.examples</groupId>
66
<artifactId>spring-data-jpa-examples-parent</artifactId>
7-
<version>1.0.3.RELEASE</version>
7+
<version>1.1.0.RELEASE</version>
88
<packaging>pom</packaging>
99

1010
<name>Spring Data JPA sample projects</name>
@@ -27,13 +27,13 @@
2727
</developers>
2828

2929
<properties>
30-
<spring.version>3.1.0.RELEASE</spring.version>
30+
<spring.version>3.1.1.RELEASE</spring.version>
3131
<jpa.version>2.0.0</jpa.version>
3232
<junit.version>4.8</junit.version>
33-
<hibernate.version>3.5.6-Final</hibernate.version>
34-
<slf4j.version>1.6.1</slf4j.version>
35-
<aspectj.version>1.6.8</aspectj.version>
36-
<jodatime.version>1.5.2</jodatime.version>
33+
<hibernate.version>4.1.4.Final</hibernate.version>
34+
<slf4j.version>1.6.6</slf4j.version>
35+
<aspectj.version>1.6.12</aspectj.version>
36+
<jodatime.version>2.1</jodatime.version>
3737
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3838
</properties>
3939

@@ -42,7 +42,7 @@
4242
<plugin>
4343
<groupId>org.apache.maven.plugins</groupId>
4444
<artifactId>maven-compiler-plugin</artifactId>
45-
<version>2.3</version>
45+
<version>2.5.1</version>
4646
<configuration>
4747
<source>1.6</source>
4848
<target>1.6</target>
@@ -73,7 +73,7 @@
7373
<dependency>
7474
<groupId>org.springframework.data</groupId>
7575
<artifactId>spring-data-jpa</artifactId>
76-
<version>1.0.3.RELEASE</version>
76+
<version>1.1.0.RELEASE</version>
7777
</dependency>
7878

7979
<dependency>
@@ -136,7 +136,7 @@
136136
<dependency>
137137
<groupId>org.hsqldb</groupId>
138138
<artifactId>hsqldb</artifactId>
139-
<version>1.8.0.10</version>
139+
<version>2.2.8</version>
140140
<scope>runtime</scope>
141141
</dependency>
142142

spring-data-jpa-example/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.springframework.data.jpa.examples</groupId>
99
<artifactId>spring-data-jpa-examples-parent</artifactId>
10-
<version>1.0.3.RELEASE</version>
10+
<version>1.1.0.RELEASE</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

@@ -29,7 +29,7 @@
2929
<plugin>
3030
<groupId>org.apache.maven.plugins</groupId>
3131
<artifactId>maven-surefire-plugin</artifactId>
32-
<version>2.4.3</version>
32+
<version>2.10</version>
3333
<configuration>
3434
<includes>
3535
<include>**/*.java</include>

spring-data-jpa-example/src/main/java/org/springframework/data/jpa/example/domain/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @author Oliver Gierke
1313
*/
1414
@Entity
15-
@NamedQuery(name = "User.findByTheUsersName", query = "from User u where u.username = ?")
15+
@NamedQuery(name = "User.findByTheUsersName", query = "from User u where u.username = ?1")
1616
public class User extends AbstractPersistable<Long> {
1717

1818
private static final long serialVersionUID = -2952735933715107252L;

spring-data-jpa-example/src/main/java/org/springframework/data/jpa/example/repository/UserRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ public interface UserRepository extends CrudRepository<User, Long>, UserReposito
4040
* @param firstname
4141
* @return
4242
*/
43-
@Query("select u from User u where u.firstname = ?")
43+
@Query("select u from User u where u.firstname = ?1")
4444
List<User> findByFirstname(String firstname);
4545
}

spring-data-jpa-showcase/pom.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
<parent>
88
<groupId>org.springframework.data.jpa.examples</groupId>
99
<artifactId>spring-data-jpa-examples-parent</artifactId>
10-
<version>1.0.3.RELEASE</version>
10+
<version>1.1.0.RELEASE</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<name>Spring Data JPA showcase</name>
1515
<description>Sample project showing how Spring Data JPA eases implementing repositories over a plain JPA/Spring approach</description>
1616

1717
<properties>
18-
<querydsl.version>2.2.5</querydsl.version>
18+
<querydsl.version>2.6.0</querydsl.version>
1919
</properties>
2020

2121
<build>
@@ -83,20 +83,13 @@
8383
<activeByDefault>true</activeByDefault>
8484
</activation>
8585
<dependencies>
86-
87-
<!-- QueryDsl -->
88-
<dependency>
89-
<groupId>com.mysema.querydsl</groupId>
90-
<artifactId>querydsl-apt</artifactId>
91-
<version>${querydsl.version}</version>
92-
<scope>provided</scope>
93-
</dependency>
9486

9587
<dependency>
9688
<groupId>com.mysema.querydsl</groupId>
9789
<artifactId>querydsl-jpa</artifactId>
9890
<version>${querydsl.version}</version>
9991
</dependency>
92+
10093
</dependencies>
10194

10295
<repositories>
@@ -112,7 +105,14 @@
112105
<plugin>
113106
<groupId>com.mysema.maven</groupId>
114107
<artifactId>maven-apt-plugin</artifactId>
115-
<version>1.0</version>
108+
<version>1.0.3</version>
109+
<dependencies>
110+
<dependency>
111+
<groupId>com.mysema.querydsl</groupId>
112+
<artifactId>querydsl-apt</artifactId>
113+
<version>${querydsl.version}</version>
114+
</dependency>
115+
</dependencies>
116116
<executions>
117117
<execution>
118118
<phase>generate-sources</phase>

0 commit comments

Comments
 (0)