程序包 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
    另请参阅:
    序列化表格
    • 构造器详细资料

      • 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 taking DuplicateMappingException.Type instead.
        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 condition
        type - 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 taking DuplicateMappingException.Type instead.
        Creates a DuplicateMappingException using the given customMessage, type and name.
        参数:
        customMessage - A custom exception message explaining the exception condition
        type - The type of the duplicated thing.
        name - The name of the duplicated thing.
    • 方法详细资料

      • getType

        public String getType()
      • getName

        public String getName()