[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4102) Same applies to version 3.3.1

Peter Ladanyi (JIRA) noreply at atlassian.com
Thu Aug 20 09:12:15 EDT 2009


Same applies to version 3.3.1
-----------------------------

                 Key: HHH-4102
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4102
             Project: Hibernate Core
          Issue Type: Sub-task
          Components: core
    Affects Versions: 3.3.1
            Reporter: Peter Ladanyi
            Priority: Critical


Can u please validate my change 
ThreadLocalSessionContext.TransactionProtectionWrapper.invoke(line:328 )


Modified to
if ( "beginTransaction".equals( method.getName() )
						     || "getTransaction".equals( method.getName() )
						     || "isTransactionInProgress".equals( method.getName() )
						     || "setFlushMode".equals( method.getName() )
						     || "createCriteria".equals( method.getName() )
						     || "createFilter".equals( method.getName() )
						     || "createQuery".equals( method.getName() )
						     || "get".equals( method.getName() )
						     || "load".equals( method.getName() )
						     || "refresh".equals( method.getName() )
						     || "update".equals( method.getName() )
						     || "getSessionFactory".equals( method.getName() ) ) {
						log.trace( "allowing method [" + method.getName() + "] in non-transacted context" );
					}
					else if ( "reconnect".equals( method.getName() )
					          || "disconnect".equals( method.getName() ) ) {
						// allow these (deprecated) methods to pass through
					}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list