Browse Source

polishing

3.0.x
Juergen Hoeller 15 years ago
parent
commit
da36c2b8b8
  1. 2
      org.springframework.orm/src/main/java/org/springframework/orm/jdo/support/JdoDaoSupport.java
  2. 3
      org.springframework.transaction/src/main/java/org/springframework/transaction/support/DefaultTransactionStatus.java

2
org.springframework.orm/src/main/java/org/springframework/orm/jdo/support/JdoDaoSupport.java

@ -67,7 +67,7 @@ public abstract class JdoDaoSupport extends DaoSupport { @@ -67,7 +67,7 @@ public abstract class JdoDaoSupport extends DaoSupport {
*/
public final void setPersistenceManagerFactory(PersistenceManagerFactory persistenceManagerFactory) {
if (this.jdoTemplate == null || persistenceManagerFactory != this.jdoTemplate.getPersistenceManagerFactory()) {
this.jdoTemplate = createJdoTemplate(persistenceManagerFactory);
this.jdoTemplate = createJdoTemplate(persistenceManagerFactory);
}
}

3
org.springframework.transaction/src/main/java/org/springframework/transaction/support/DefaultTransactionStatus.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2009 the original author or authors.
* Copyright 2002-2011 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.
@ -161,6 +161,7 @@ public class DefaultTransactionStatus extends AbstractTransactionStatus { @@ -161,6 +161,7 @@ public class DefaultTransactionStatus extends AbstractTransactionStatus {
* Delegate the flushing to the transaction object,
* provided that the latter implements the {@link SmartTransactionObject} interface.
*/
@Override
public void flush() {
if (this.transaction instanceof SmartTransactionObject) {
((SmartTransactionObject) this.transaction).flush();

Loading…
Cancel
Save