Skip to content

Commit d40fec5

Browse files
committed
Polishing.
See #695
1 parent 5a234bc commit d40fec5

File tree

20 files changed

+39
-47
lines changed

20 files changed

+39
-47
lines changed

jpa/aot-generation/pom.xml renamed to jpa/aot-optimization/pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
</parent>
1111

1212
<groupId>org.example</groupId>
13-
<artifactId>aot-generation</artifactId>
13+
<artifactId>spring-data-jpa-aot-optimization</artifactId>
1414

1515
<properties>
1616
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1717
<hibernate.version>7.0.0.Beta5</hibernate.version>
18+
<spring-data-bom.version>2025.1.0-SNAPSHOT</spring-data-bom.version>
1819
</properties>
1920

2021
<dependencies>
@@ -24,6 +25,12 @@
2425
<version>1.0.0</version>
2526
</dependency>
2627

28+
<dependency>
29+
<groupId>jakarta.persistence</groupId>
30+
<artifactId>jakarta.persistence-api</artifactId>
31+
<version>3.2.0</version>
32+
</dependency>
33+
2734
<dependency>
2835
<groupId>com.querydsl</groupId>
2936
<artifactId>querydsl-jpa</artifactId>

jpa/aot-generation/src/main/java/example/springdata/aot/AotJpaApp.java renamed to jpa/aot-optimization/src/main/java/example/springdata/aot/AotJpaApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,

jpa/aot-generation/src/main/java/example/springdata/aot/Post.java renamed to jpa/aot-optimization/src/main/java/example/springdata/aot/Post.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -15,14 +15,14 @@
1515
*/
1616
package example.springdata.aot;
1717

18-
import java.time.Instant;
19-
import java.time.temporal.ChronoUnit;
20-
import java.util.Random;
21-
2218
import jakarta.persistence.Entity;
2319
import jakarta.persistence.GeneratedValue;
2420
import jakarta.persistence.Id;
2521

22+
import java.time.Instant;
23+
import java.time.temporal.ChronoUnit;
24+
import java.util.Random;
25+
2626
/**
2727
* @author Christoph Strobl
2828
* @since 2025/01

jpa/aot-generation/src/main/java/example/springdata/aot/User.java renamed to jpa/aot-optimization/src/main/java/example/springdata/aot/User.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
*/
1616
package example.springdata.aot;
1717

18-
import java.time.Instant;
19-
import java.util.List;
20-
2118
import jakarta.persistence.Column;
2219
import jakarta.persistence.Entity;
2320
import jakarta.persistence.Id;
24-
import jakarta.persistence.OneToMany;
21+
22+
import java.time.Instant;
2523

2624
/**
2725
* @author Christoph Strobl

jpa/pom.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<inceptionYear>2011</inceptionYear>
1818

1919
<modules>
20+
<module>aot-optimization</module>
2021
<module>deferred</module>
2122
<module>envers</module>
2223
<module>example</module>
@@ -29,7 +30,6 @@
2930
<module>vavr</module>
3031
<module>multitenant</module>
3132
<module>graalvm-native</module>
32-
<module>aot-generation</module>
3333
</modules>
3434

3535
<dependencies>
@@ -42,19 +42,16 @@
4242
<dependency>
4343
<groupId>org.springframework.data</groupId>
4444
<artifactId>spring-data-commons</artifactId>
45-
<version>4.0.0-SNAPSHOT</version>
4645
</dependency>
4746

4847
<dependency>
4948
<groupId>org.springframework.data</groupId>
5049
<artifactId>spring-data-jpa</artifactId>
51-
<version>4.0.0-SNAPSHOT</version>
5250
</dependency>
5351

5452
<dependency>
5553
<groupId>jakarta.persistence</groupId>
5654
<artifactId>jakarta.persistence-api</artifactId>
57-
<version>3.2.0</version>
5855
</dependency>
5956

6057
<dependency>

mongodb/aot-generation/pom.xml renamed to mongodb/aot-optimization/pom.xml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,21 @@
1010
</parent>
1111

1212
<groupId>org.example</groupId>
13-
<artifactId>aot-generation</artifactId>
13+
<artifactId>spring-data-mongodb-aot-optimization</artifactId>
1414

1515
<properties>
1616
<maven.compiler.source>21</maven.compiler.source>
1717
<maven.compiler.target>21</maven.compiler.target>
1818
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19+
<spring-data-bom.version>2025.1.0-SNAPSHOT</spring-data-bom.version>
1920
</properties>
2021

2122
<dependencies>
22-
<dependency>
23-
<groupId>org.springframework.data</groupId>
24-
<artifactId>spring-data-commons</artifactId>
25-
<version>4.0.x-GENERATED-REPOSITORIES-SNAPSHOT</version>
26-
</dependency>
27-
<dependency>
28-
<groupId>org.springframework.data</groupId>
29-
<artifactId>spring-data-mongodb</artifactId>
30-
<version>5.0.0-GENERATED-REPOSITORIES-SNAPSHOT</version>
31-
</dependency>
32-
<dependency>
33-
<groupId>org.mongodb</groupId>
34-
<artifactId>bson</artifactId>
35-
<version>5.3.1</version>
36-
</dependency>
37-
<dependency>
38-
<groupId>org.mongodb</groupId>
39-
<artifactId>mongodb-driver-core</artifactId>
40-
<version>5.3.1</version>
41-
</dependency>
42-
<dependency>
43-
<groupId>org.mongodb</groupId>
44-
<artifactId>mongodb-driver-sync</artifactId>
45-
<version>5.3.1</version>
46-
</dependency>
4723
<dependency>
4824
<groupId>org.jspecify</groupId>
4925
<artifactId>jspecify</artifactId>
5026
<version>1.0.0</version>
51-
</dependency>
27+
</dependency>
5228
</dependencies>
5329

5430
<build>

0 commit comments

Comments
 (0)