org.hibernate

Class DuplicateMappingException

Implemented Interfaces:
Nestable

public class DuplicateMappingException
extends MappingException

Raised whenever a duplicate for a certain type occurs. Duplicate class, table, property name etc.
Author:
Max Rydahl Andersen

Field Summary

Fields inherited from class org.hibernate.exception.NestableRuntimeException

delegate

Constructor Summary

DuplicateMappingException(String type, String name)
DuplicateMappingException(String customMessage, String type, String name)

Method Summary

String
getName()
String
getType()

Methods inherited from class org.hibernate.exception.NestableRuntimeException

getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace

Constructor Details

DuplicateMappingException

public DuplicateMappingException(String type,
                                 String name)

DuplicateMappingException

public DuplicateMappingException(String customMessage,
                                 String type,
                                 String name)

Method Details

getName

public String getName()

getType

public String getType()