* @see http://www.hibernate.org/42.html
*
* @author n.hoffmann,c.mathew
- * @created 12.03.2009
- * @version 1.0
+ * @since 12.03.2009
*/
public class ConversationHolder {
* @return if there is a running transaction
*/
public boolean isTransactionActive(){
- return transactionStatus != null;
+ return transactionStatus != null && !transactionStatus.isCompleted();
}
- /* (non-Javadoc)
- * @see org.hibernate.Session#evict(java.lang.Object object)
- */
public void evict(Object object){
getSession().evict(object);
}
- /* (non-Javadoc)
- * @see org.hibernate.Session#refresh(java.lang.Object object)
- */
public void refresh(Object object){
getSession().refresh(object);
}
- /* (non-Javadoc)
- * @see org.hibernate.Session#clear()
- */
public void clear(){
getSession().clear();
}