Package org.hibernate
Class 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
-
- All Implemented Interfaces:
java.io.Serializable
public class DuplicateMappingException extends MappingException
Raised whenever a duplicate for a certain type occurs. Duplicate class, table, property name etc.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DuplicateMappingException.Type
Enumeration of the types of things that can be duplicated.
-
Constructor Summary
Constructors Constructor Description DuplicateMappingException(java.lang.String type, java.lang.String name)
Deprecated.Use the for takingDuplicateMappingException.Type
instead.DuplicateMappingException(java.lang.String customMessage, java.lang.String type, java.lang.String name)
Deprecated.Use the for takingDuplicateMappingException.Type
instead.DuplicateMappingException(java.lang.String customMessage, DuplicateMappingException.Type type, java.lang.String name)
Creates a DuplicateMappingException using the given customMessage, type and name.DuplicateMappingException(DuplicateMappingException.Type type, java.lang.String name)
Creates a DuplicateMappingException using the given type and name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
java.lang.String
getType()
-
-
-
Constructor Detail
-
DuplicateMappingException
public DuplicateMappingException(DuplicateMappingException.Type type, java.lang.String name)
Creates a DuplicateMappingException using the given type and name.- Parameters:
type
- The type of the duplicated thing.name
- The name of the duplicated thing.
-
DuplicateMappingException
@Deprecated public DuplicateMappingException(java.lang.String type, java.lang.String name)
Deprecated.Use the for takingDuplicateMappingException.Type
instead.Creates a DuplicateMappingException using the given type and name.- Parameters:
type
- The type of the duplicated thing.name
- The name of the duplicated thing.
-
DuplicateMappingException
public DuplicateMappingException(java.lang.String customMessage, DuplicateMappingException.Type type, java.lang.String name)
Creates a DuplicateMappingException using the given customMessage, type and name.- Parameters:
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(java.lang.String customMessage, java.lang.String type, java.lang.String name)
Deprecated.Use the for takingDuplicateMappingException.Type
instead.Creates a DuplicateMappingException using the given customMessage, type and name.- Parameters:
customMessage
- A custom exception message explaining the exception conditiontype
- The type of the duplicated thing.name
- The name of the duplicated thing.
-
-