程序包 org.hibernate
类 DuplicateMappingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.persistence.PersistenceException
-
- org.hibernate.HibernateException
-
- org.hibernate.MappingException
-
- org.hibernate.DuplicateMappingException
-
- 所有已实现的接口:
Serializable
public class DuplicateMappingException extends MappingException
Raised whenever a duplicate for a certain type occurs. Duplicate class, table, property name etc.- 作者:
- Max Rydahl Andersen, Steve Ebersole
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classDuplicateMappingException.TypeEnumeration of the types of things that can be duplicated.
-
构造器概要
构造器 构造器 说明 DuplicateMappingException(String type, String name)已过时。Use the for takingDuplicateMappingException.Typeinstead.DuplicateMappingException(String customMessage, String type, String name)已过时。Use the for takingDuplicateMappingException.Typeinstead.DuplicateMappingException(String customMessage, DuplicateMappingException.Type type, String name)Creates a DuplicateMappingException using the given customMessage, type and name.DuplicateMappingException(DuplicateMappingException.Type type, String name)Creates a DuplicateMappingException using the given type and name.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 StringgetName()StringgetType()
-
-
-
构造器详细资料
-
DuplicateMappingException
public DuplicateMappingException(DuplicateMappingException.Type type, String name)
Creates a DuplicateMappingException using the given type and name.- 参数:
type- The type of the duplicated thing.name- The name of the duplicated thing.
-
DuplicateMappingException
@Deprecated public DuplicateMappingException(String type, String name)
已过时。Use the for takingDuplicateMappingException.Typeinstead.Creates a DuplicateMappingException using the given type and name.- 参数:
type- The type of the duplicated thing.name- The name of the duplicated thing.
-
DuplicateMappingException
public DuplicateMappingException(String customMessage, DuplicateMappingException.Type type, String name)
Creates a DuplicateMappingException using the given customMessage, type and name.- 参数:
customMessage- A custom exception message explaining the exception conditiontype- The type of the duplicated thing.name- The name of the duplicated thing.
-
DuplicateMappingException
@Deprecated public DuplicateMappingException(String customMessage, String type, String name)
已过时。Use the for takingDuplicateMappingException.Typeinstead.Creates a DuplicateMappingException using the given customMessage, type and name.- 参数:
customMessage- A custom exception message explaining the exception conditiontype- The type of the duplicated thing.name- The name of the duplicated thing.
-
-