diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java index fe70a63094..48a687005c 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java @@ -366,6 +366,26 @@ public abstract class Dialect { return descriptor; } + /** + * The legacy behavior of Hibernate. LOBs are not processed by merge + */ + protected static final LobMergeStrategy LEGACY_LOB_MERGE_STRATEGY = new LobMergeStrategy() { + @Override + public Blob mergeBlob(Blob original, Blob target, SessionImplementor session) { + return target; + } + + @Override + public Clob mergeClob(Clob original, Clob target, SessionImplementor session) { + return target; + } + + @Override + public NClob mergeNClob(NClob original, NClob target, SessionImplementor session) { + return target; + } + }; + /** * Merge strategy based on transferring contents based on streams. */