Author: stliu
Date: 2010-05-09 01:44:38 -0400 (Sun, 09 May 2010)
New Revision: 19430
Added:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/resources/DB2JccConfiguration.properties
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/lob/BlobTest.java
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/lob/ClobTest.java
Log:
JBPAPP-2613 apply workaround
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/lob/BlobTest.java
===================================================================
---
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/lob/BlobTest.java 2010-05-08
21:58:15 UTC (rev 19429)
+++
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/lob/BlobTest.java 2010-05-09
05:44:38 UTC (rev 19430)
@@ -79,7 +79,7 @@
Session s = openSession();
s.beginTransaction();
LobHolder entity = new LobHolder();
- entity.setBlobLocator( Hibernate.createBlob( original ) );
+ entity.setBlobLocator( Hibernate.createBlob( original,s ) );
s.save( entity );
s.getTransaction().commit();
s.close();
@@ -121,7 +121,7 @@
assertNotNull( entity.getBlobLocator() );
assertEquals( BLOB_SIZE, entity.getBlobLocator().length() );
assertEquals( original, extractData( entity.getBlobLocator() ) );
- entity.setBlobLocator( Hibernate.createBlob( changed ) );
+ entity.setBlobLocator( Hibernate.createBlob( changed,s ) );
s.getTransaction().commit();
s.close();
@@ -150,7 +150,7 @@
Session s = openSession();
s.beginTransaction();
LobHolder entity = new LobHolder();
- entity.setBlobLocator( Hibernate.createBlob( original ) );
+ entity.setBlobLocator( Hibernate.createBlob( original,s ) );
s.save( entity );
s.getTransaction().commit();
s.close();
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/lob/ClobTest.java
===================================================================
---
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/lob/ClobTest.java 2010-05-08
21:58:15 UTC (rev 19429)
+++
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/lob/ClobTest.java 2010-05-09
05:44:38 UTC (rev 19430)
@@ -80,7 +80,7 @@
Session s = openSession();
s.beginTransaction();
LobHolder entity = new LobHolder();
- entity.setClobLocator( Hibernate.createClob( original ) );
+ entity.setClobLocator( Hibernate.createClob( original,s ) );
s.save( entity );
s.getTransaction().commit();
s.close();
@@ -122,7 +122,7 @@
assertNotNull( entity.getClobLocator() );
assertEquals( CLOB_SIZE, entity.getClobLocator().length() );
assertEquals( original, extractData( entity.getClobLocator() ) );
- entity.setClobLocator( Hibernate.createClob( changed ) );
+ entity.setClobLocator( Hibernate.createClob( changed,s ) );
s.getTransaction().commit();
s.close();
@@ -151,7 +151,7 @@
Session s = openSession();
s.beginTransaction();
LobHolder entity = new LobHolder();
- entity.setClobLocator( Hibernate.createClob( original ) );
+ entity.setClobLocator( Hibernate.createClob( original,s ) );
s.save( entity );
s.getTransaction().commit();
s.close();
Added:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/resources/DB2JccConfiguration.properties
===================================================================
---
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/resources/DB2JccConfiguration.properties
(rev 0)
+++
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/resources/DB2JccConfiguration.properties 2010-05-09
05:44:38 UTC (rev 19430)
@@ -0,0 +1 @@
+db2.jcc.override.progressiveStreaming=2
\ No newline at end of file