org.hibernate.ReplicationMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate;
import org.hibernate.type.BasicType;
/**
* Represents a replication strategy used by
* {@link Session#replicate(Object, ReplicationMode)}.
*
* @author Gavin King
*
* @see Session#replicate(Object, ReplicationMode)
*
* @deprecated since {@link Session#replicate(Object, ReplicationMode)} is deprecated
*/
@Deprecated(since="6.2")
public enum ReplicationMode {
/**
* Throw an exception when a row already exists.
*/
EXCEPTION {
@Override
public boolean shouldOverwriteCurrentVersion(
Object entity,
Object currentVersion, Object newVersion,
BasicType
© 2015 - 2024 Weber Informatics LLC | Privacy Policy