Skip to content

Commit

Permalink
Note on PersistenceExceptionTranslator sorting and non-singleton retr…
Browse files Browse the repository at this point in the history
…ieval

Closes gh-26412
  • Loading branch information
jhoeller committed Nov 9, 2021
1 parent 9bc0963 commit 8d735e6
Showing 1 changed file with 6 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,7 +38,6 @@
* PersistenceExceptionTranslator} interface, which are subsequently asked to translate
* candidate exceptions.
*
* <p>All of Spring's applicable resource factories (e.g.
* {@link org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean})
* implement the {@code PersistenceExceptionTranslator} interface out of the box.
Expand All @@ -47,6 +46,11 @@
* with the {@code @Repository} annotation, along with defining this post-processor
* as a bean in the application context.
*
* <p>As of 5.3, {@code PersistenceExceptionTranslator} beans will be sorted according
* to Spring's dependency ordering rules: see {@link org.springframework.core.Ordered}
* and {@link org.springframework.core.annotation.Order}. Note that such beans will
* get retrieved from any scope, not just singleton scope, as of this 5.3 revision.
*
* @author Rod Johnson
* @author Juergen Hoeller
* @since 2.0
Expand Down

0 comments on commit 8d735e6

Please sign in to comment.