cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1577987 - in /cayenne/main/trunk: cayenne-server/src/test/java/org/apache/cayenne/access/DataContextBlobTest.java docs/doc/src/main/resources/RELEASE-NOTES.txt
Date Sun, 16 Mar 2014 07:10:16 GMT
Author: aadamchik
Date: Sun Mar 16 07:10:15 2014
New Revision: 1577987

URL: http://svn.apache.org/r1577987
Log:
CAY-1918 Replace Oracle LOB hacks with JDBC 4.0 API

Modified:
    cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextBlobTest.java
    cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt

Modified: cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextBlobTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextBlobTest.java?rev=1577987&r1=1577986&r2=1577987&view=diff
==============================================================================
--- cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextBlobTest.java
(original)
+++ cayenne/main/trunk/cayenne-server/src/test/java/org/apache/cayenne/access/DataContextBlobTest.java
Sun Mar 16 07:10:15 2014
@@ -62,6 +62,28 @@ public class DataContextBlobTest extends
     protected boolean skipEmptyLOBTests() {
         return !accessStackAdapter.handlesNullVsEmptyLOBs();
     }
+    
+    public void testManyBlobsInOneTX() throws Exception {
+        if (skipTests()) {
+            return;
+        }
+
+        for (int i = 0; i < 3; i++) {
+            BlobTestEntity b = context.newObject(BlobTestEntity.class);
+
+            byte[] bytes = new byte[1024];
+            for (int j = 0; j < 1024; j++) {
+                bytes[j] = (byte) (65 + (50 + j) % 50);
+            }
+
+            b.setBlobCol(bytes);
+            context.commitChanges();
+        }
+
+        // read the CLOB in the new context
+        List<BlobTestEntity> objects2 = context2.select(new SelectQuery<BlobTestEntity>(BlobTestEntity.class));
+        assertEquals(3, objects2.size());
+    }
 
     public void testEmptyBlob() throws Exception {
         if (skipTests()) {

Modified: cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt?rev=1577987&r1=1577986&r2=1577987&view=diff
==============================================================================
--- cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt (original)
+++ cayenne/main/trunk/docs/doc/src/main/resources/RELEASE-NOTES.txt Sun Mar 16 07:10:15 2014
@@ -41,6 +41,7 @@ CAY-1912 BatchQueryBuilder refactoring
 CAY-1913 Refactor org.apache.cayenne.access.trans into query-specific packages
 CAY-1914 Refactor EJBQL-related translators to a standalone 'org.apache.cayenne.access.translator.ejbql'
package
 CAY-1915 BatchTranslator instead of performing bindings should return binding object whose
values can be altered
+CAY-1918 Replace Oracle LOB hacks with JDBC 4.0 API
 
 Bug Fixes:
 



Mime
View raw message