From 762cadec942fec5485c286b4b51d544f1df347b9 Mon Sep 17 00:00:00 2001 From: Gavin Date: Fri, 19 May 2023 11:26:47 +0200 Subject: [PATCH] explain the usefulness of java.sql.Xlob --- documentation/src/main/asciidoc/introduction/Mapping.adoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/src/main/asciidoc/introduction/Mapping.adoc b/documentation/src/main/asciidoc/introduction/Mapping.adoc index ac11df9d9fb0..e70db4f84279 100644 --- a/documentation/src/main/asciidoc/introduction/Mapping.adoc +++ b/documentation/src/main/asciidoc/introduction/Mapping.adoc @@ -638,6 +638,8 @@ class Book { } ---- +The advantage is that a `java.sql.Clob` or `java.sql.Blob` can in principle index up to 2^63^ characters or bytes, much more data than you can fit in a Java `String` or `byte[]` array (or in your computer). + To assign a value to these fields, we'll need to use a `LobHelper`. We can get one from the `Session`: