HHH-2680 - Blobs not updated on Session.merge() for detached instances
This commit is contained in:
parent
a491f64570
commit
97fb031dba
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue