Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa-parent</artifactId>
<version>4.0.0-SNAPSHOT</version>
<version>4.0.x-GH-COMMONS-3339-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Spring Data JPA Parent</name>
Expand Down Expand Up @@ -40,7 +40,7 @@
<mysql-connector-java>9.2.0</mysql-connector-java>
<postgresql>42.7.7</postgresql>
<oracle>23.8.0.25.04</oracle>
<springdata.commons>4.0.0-SNAPSHOT</springdata.commons>
<springdata.commons>4.0.x-GH-3339-SNAPSHOT</springdata.commons>
<vavr>0.10.3</vavr>

<hibernate.groupId>org.hibernate</hibernate.groupId>
Expand Down
4 changes: 2 additions & 2 deletions spring-data-envers/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

<groupId>org.springframework.data</groupId>
<artifactId>spring-data-envers</artifactId>
<version>4.0.0-SNAPSHOT</version>
<version>4.0.x-GH-COMMONS-3339-SNAPSHOT</version>

<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa-parent</artifactId>
<version>4.0.0-SNAPSHOT</version>
<version>4.0.x-GH-COMMONS-3339-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion spring-data-jpa-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa-parent</artifactId>
<version>4.0.0-SNAPSHOT</version>
<version>4.0.x-GH-COMMONS-3339-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions spring-data-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>4.0.0-SNAPSHOT</version>
<version>4.0.x-GH-COMMONS-3339-SNAPSHOT</version>

<name>Spring Data JPA</name>
<description>Spring Data module for JPA repositories.</description>
Expand All @@ -16,7 +16,7 @@
<parent>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa-parent</artifactId>
<version>4.0.0-SNAPSHOT</version>
<version>4.0.x-GH-COMMONS-3339-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private static TestGenerationContext generate(Class<?>... configurationClasses)

TestGenerationContext generationContext = new TestGenerationContext();
generator.processAheadOfTime(context, generationContext);
generationContext.writeGeneratedContent();
return generationContext;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,14 @@ public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
new JpaRepositoryContributor(repositoryContext).contribute(generationContext);

AbstractBeanDefinition aotGeneratedRepository = BeanDefinitionBuilder
.genericBeanDefinition(repositoryInterface.getName() + "Impl__Aot")
.genericBeanDefinition(repositoryInterface.getName() + "Impl__AotRepository")
.addConstructorArgValue(new RuntimeBeanReference(EntityManager.class))
.addConstructorArgValue(
getCreationContext(repositoryContext, beanFactory.getBean(Environment.class), beanFactory))
.getBeanDefinition();

generationContext.writeGeneratedContent();

TestCompiler.forSystem().withCompilerOptions("-parameters").with(generationContext).compile(compiled -> {
beanFactory.setBeanClassLoader(compiled.getClassLoader());
((BeanDefinitionRegistry) beanFactory).registerBeanDefinition("fragment", aotGeneratedRepository);
Expand Down