Package org.hibernate

Class DuplicateMappingException

  • All Implemented Interfaces:
    Serializable

    public class DuplicateMappingException
    extends MappingException
    Raised whenever a duplicate for a certain type occurs, such as a duplicate class, table, or property name.
    See Also:
    Serialized Form
    • Constructor Detail

      • DuplicateMappingException

        public DuplicateMappingException​(DuplicateMappingException.Type type,
                                         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

        public DuplicateMappingException​(String customMessage,
                                         DuplicateMappingException.Type type,
                                         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.
    • Method Detail

      • getType

        public String getType()
      • getName

        public String getName()