HHH-2680 - Blobs not updated on Session.merge() for detached instances

This commit is contained in:
Steve Ebersole 2011-03-23 17:32:00 -05:00
parent a491f64570
commit 97fb031dba
1 changed files with 20 additions and 0 deletions

View File

@ -366,6 +366,26 @@ public abstract class Dialect {
return descriptor; 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. * Merge strategy based on transferring contents based on streams.
*/ */