Package org.hibernate

Class 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
    • 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 taking DuplicateMappingException.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 condition
        type - 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 taking DuplicateMappingException.Type instead.
        Creates a DuplicateMappingException using the given customMessage, type and name.
        Parameters:
        customMessage - A custom exception message explaining the exception condition
        type - The type of the duplicated thing.
        name - The name of the duplicated thing.
    • Method Detail

      • getType

        public java.lang.String getType()
      • getName

        public java.lang.String getName()