Package org.hibernate
Class ReplicationMode
java.lang.Object
org.hibernate.ReplicationMode
- All Implemented Interfaces:
Serializable
Represents a replication strategy.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReplicationModeThrow an exception when a row already exists.static final ReplicationModeIgnore replicated entities when a row already exists.static final ReplicationModeWhen a row already exists, choose the latest version.static final ReplicationModeOverwrite existing rows when a row already exists. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanshouldOverwriteCurrentVersion(Object entity, Object currentVersion, Object newVersion, VersionType versionType) toString()
-
Field Details
-
EXCEPTION
Throw an exception when a row already exists. -
IGNORE
Ignore replicated entities when a row already exists. -
OVERWRITE
Overwrite existing rows when a row already exists. -
LATEST_VERSION
When a row already exists, choose the latest version.
-
-
Constructor Details
-
ReplicationMode
-
-
Method Details