Top Description Inners Fields Constructors Methods
org.hibernate

public Class DuplicateMappingException

extends MappingException
Class Inheritance

Raised whenever a duplicate for a certain type occurs. Duplicate class, table, property name etc.
Authors
Max Rydahl Andersen, Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
DuplicateMappingException.Type

Enumeration of the types of things that can be duplicated.

Field Summary

Modifier and TypeField and Description
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
DuplicateMappingException(DuplicateMappingException.Type
The type of the duplicated thing.
type
,
String
The name of the duplicated thing.
name
)

Creates a DuplicateMappingException using the given type and name.

public
DuplicateMappingException(String
The type of the duplicated thing.
type
,
String
The name of the duplicated thing.
name
)

Deprecated Use the for taking Type instead.
Creates a DuplicateMappingException using the given type and name.
public
DuplicateMappingException(String
A custom exception message explaining the exception condition
customMessage
,
DuplicateMappingException.Type
The type of the duplicated thing.
type
,
String
The name of the duplicated thing.
name
)

Creates a DuplicateMappingException using the given customMessage, type and name.

public
DuplicateMappingException(String
A custom exception message explaining the exception condition
customMessage
,
String
The type of the duplicated thing.
type
,
String
The name of the duplicated thing.
name
)

Deprecated Use the for taking Type instead.
Creates a DuplicateMappingException using the given customMessage, type and name.

Method Summary

Modifier and TypeMethod and Description
public String
public String

Field Detail

nameback to summary
private final String name
typeback to summary
private final String type

Constructor Detail

DuplicateMappingExceptionback to summary
public DuplicateMappingException(DuplicateMappingException.Type type, String name)

Creates a DuplicateMappingException using the given type and name.

Parameters
type:DuplicateMappingException.Type

The type of the duplicated thing.

name:String

The name of the duplicated thing.

DuplicateMappingExceptionback to summary
public DuplicateMappingException(String type, String name)

Deprecated

Use the for taking Type instead.

Creates a DuplicateMappingException using the given type and name.

Parameters
type:String

The type of the duplicated thing.

name:String

The name of the duplicated thing.

Annotations
@Deprecated
DuplicateMappingExceptionback to summary
public DuplicateMappingException(String customMessage, DuplicateMappingException.Type type, String name)

Creates a DuplicateMappingException using the given customMessage, type and name.

Parameters
customMessage:String

A custom exception message explaining the exception condition

type:DuplicateMappingException.Type

The type of the duplicated thing.

name:String

The name of the duplicated thing.

DuplicateMappingExceptionback to summary
public DuplicateMappingException(String customMessage, String type, String name)

Deprecated

Use the for taking Type instead.

Creates a DuplicateMappingException using the given customMessage, type and name.

Parameters
customMessage:String

A custom exception message explaining the exception condition

type:String

The type of the duplicated thing.

name:String

The name of the duplicated thing.

Annotations
@Deprecated

Method Detail

getNameback to summary
public String getName()
getTypeback to summary
public String getType()
org.hibernate back to summary

public final Enum DuplicateMappingException.Type

extends Enum<DuplicateMappingException.Type>
Class Inheritance

Enumeration of the types of things that can be duplicated.

Field Summary

Modifier and TypeField and Description
public static final DuplicateMappingException.Type
COLLECTION

A duplicate collection role was encountered

public static final DuplicateMappingException.Type
COLUMN

A duplicate column definition was encountered.

public static final DuplicateMappingException.Type
COLUMN_BINDING

A duplicate column definition was encountered.

public static final DuplicateMappingException.Type
ENTITY

A duplicate entity definition was encountered.

public static final DuplicateMappingException.Type
NAMED_ENTITY_GRAPH

A duplicate named entity graph was encountered

public static final DuplicateMappingException.Type
PROCEDURE

A duplicate NamedStoredProcedureQuery was encountered

public static final DuplicateMappingException.Type
PROPERTY

A duplicate property/attribute definition was encountered.

public static final DuplicateMappingException.Type
QUERY

A duplicate named query (ql or native) was encountered

public static final DuplicateMappingException.Type
RESULT_SET_MAPPING

A duplicate ResultSetMapping was encountered

public static final DuplicateMappingException.Type
TABLE

A duplicate table definition was encountered.

private final String

Constructor Summary

AccessConstructor and Description
private
Type(String text)

Method Summary

Modifier and TypeMethod and Description
public static DuplicateMappingException.Type
public static DuplicateMappingException.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COLLECTIONback to summary
public static final DuplicateMappingException.Type COLLECTION

A duplicate collection role was encountered

COLUMNback to summary
public static final DuplicateMappingException.Type COLUMN

A duplicate column definition was encountered.

COLUMN_BINDINGback to summary
public static final DuplicateMappingException.Type COLUMN_BINDING

A duplicate column definition was encountered.

ENTITYback to summary
public static final DuplicateMappingException.Type ENTITY

A duplicate entity definition was encountered.

NAMED_ENTITY_GRAPHback to summary
public static final DuplicateMappingException.Type NAMED_ENTITY_GRAPH

A duplicate named entity graph was encountered

PROCEDUREback to summary
public static final DuplicateMappingException.Type PROCEDURE

A duplicate NamedStoredProcedureQuery was encountered

PROPERTYback to summary
public static final DuplicateMappingException.Type PROPERTY

A duplicate property/attribute definition was encountered.

QUERYback to summary
public static final DuplicateMappingException.Type QUERY

A duplicate named query (ql or native) was encountered

RESULT_SET_MAPPINGback to summary
public static final DuplicateMappingException.Type RESULT_SET_MAPPING

A duplicate ResultSetMapping was encountered

TABLEback to summary
public static final DuplicateMappingException.Type TABLE

A duplicate table definition was encountered.

textback to summary
private final String text

Constructor Detail

Typeback to summary
private Type(String text)

Method Detail

valueOfback to summary
public static DuplicateMappingException.Type valueOf(String name)
valuesback to summary
public static DuplicateMappingException.Type[] values()