Deprecating wrapped transaction managers.

This commit is contained in:
Mattias Hellborg Arthursson
2013-11-19 08:24:27 +01:00
parent 4e1717d68a
commit 2cea03dc04
2 changed files with 4 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ import org.springframework.transaction.support.DefaultTransactionStatus;
*
* @author Mattias Hellborg Arthursson
* @since 1.2
* @deprecated The idea of wrapping two transaction managers without actual XA support is probably not such a good idea
* after all. AbstractPlatformTransactionManager is not designed for this usage.
*/
public class ContextSourceAndDataSourceTransactionManager extends
DataSourceTransactionManager {

View File

@@ -35,6 +35,8 @@ import org.springframework.transaction.support.DefaultTransactionStatus;
* Furthermore, this manager <b>does not support nested transactions</b>
* @author Hans Westerbeek
* @since 1.2.2
* @deprecated The idea of wrapping two transaction managers without actual XA support is probably not such a good idea
* after all. AbstractPlatformTransactionManager is not designed for this usage.
*/
public class ContextSourceAndHibernateTransactionManager extends HibernateTransactionManager {