Changeset 7469
- Timestamp:
- Apr 3, 2018, 8:57:08 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/3.12-stable merged: 7460,7463-7466 /tags/3.12.1 (added) merged: 7467
- Property svn:mergeinfo changed
-
trunk/src/core/net/sf/basedb/core/HibernateUtil.java
r7461 r7469 47 47 import net.sf.basedb.core.hibernate.TypeWrapper; 48 48 import net.sf.basedb.core.hibernate.MultiUpdateWork; 49 import net.sf.basedb.core.hibernate.NativeQueryWrapper; 49 50 import net.sf.basedb.core.hibernate.NativeSQLFunction; 50 51 import net.sf.basedb.core.hibernate.TableExistsWork; … … 1912 1913 NativeQuery<?> q = session.createNativeQuery(sql); 1913 1914 ((Query<?>)q).setFetchSize(getJdbcFetchSize()); 1914 return q;1915 return new NativeQueryWrapper<>(q); 1915 1916 } 1916 1917 catch (HibernateException ex) … … 1945 1946 } 1946 1947 ((Query<R>)q).setFetchSize(getJdbcFetchSize()); 1947 return q;1948 return new NativeQueryWrapper<>(q); 1948 1949 } 1949 1950 catch (HibernateException ex) … … 1966 1967 NativeQuery<?> q = session.createNativeQuery(sql); 1967 1968 ((Query<?>)q).setFetchSize(getJdbcFetchSize()); 1968 return q;1969 return new NativeQueryWrapper<>(q); 1969 1970 } 1970 1971 catch (HibernateException ex) … … 1999 2000 } 2000 2001 ((Query<R>)q).setFetchSize(getJdbcFetchSize()); 2001 return q;2002 return new NativeQueryWrapper<>(q); 2002 2003 } 2003 2004 catch (HibernateException ex) -
trunk/src/test/TestAnnotationFlatFileImporter.java
r6921 r7469 89 89 ok &= TestJob.test_execute(jobId, false); 90 90 91 // One more time to check if update is possible (due to Hibernate bug described in #2110) 92 int jobId2 = test_create_job(pluginDefinitionId, fileId, timeId, ageId, enumId, timestampId, commentId, commentId); 93 ok &= TestJob.test_execute(jobId2, false); 94 91 95 // Test: list the result 92 96 TestAnnotation.test_list_annotations(Item.SAMPLE, sample1, Annotation.Source.PRIMARY, 5); … … 101 105 102 106 TestJob.test_delete(jobId); 107 TestJob.test_delete(jobId2); 103 108 TestFile.test_delete(fileId); 104 109 TestSample.test_delete(sample1);
Note: See TracChangeset
for help on using the changeset viewer.