Class DuplicateTableAliasException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mybatis.dynamic.sql.exception.DynamicSqlException
org.mybatis.dynamic.sql.exception.DuplicateTableAliasException
- All Implemented Interfaces:
Serializable
This exception is thrown when a query is built that attempts to specify more than one
alias for the same instance of an SqlTable object. That error that would produce a select
statement that doesn't work.
This error usually occurs when building a self-join query. The workaround is to create a second instance of the SqlTable object to use in the self-join.
- Since:
- 1.3.1
- Author:
- Jeff Butler
- See Also:
-
Constructor Summary
ConstructorDescriptionDuplicateTableAliasException
(SqlTable table, String newAlias, String existingAlias) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DuplicateTableAliasException
-