Package org.hibernate
Class DuplicateMappingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.persistence.PersistenceException
org.hibernate.HibernateException
org.hibernate.MappingException
org.hibernate.DuplicateMappingException
- All Implemented Interfaces:
Serializable
Raised whenever a duplicate for a certain type occurs,
such as a duplicate class, table, or property name.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumeration of the types of things that can be duplicated. -
Constructor Summary
ConstructorDescriptionDuplicateMappingException
(String customMessage, DuplicateMappingException.Type type, String name) Creates aDuplicateMappingException
using the given customMessage, type and name.Creates aDuplicateMappingException
using the given type and name. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateMappingException
Creates aDuplicateMappingException
using the given type and name.- Parameters:
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 aDuplicateMappingException
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.
-
-
Method Details
-
getType
-
getName
-