java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.hibernate.test.TestCase
org.hibernate.test.hql.QueryTranslatorTestCase
org.hibernate.test.hql.HQLTest
- All Implemented Interfaces:
- junit.framework.Test
- public class HQLTest
- extends QueryTranslatorTestCase
Tests cases where the AST based query translator and the 'classic' query translator generate identical SQL.
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class org.hibernate.test.hql.QueryTranslatorTestCase |
assertTranslation, assertTranslation, assertTranslation, assertTranslation, compileBadHql, createNewQueryTranslator, createNewQueryTranslator, createQueryPlan, createQueryPlan, getMappings, getSessionFactoryImplementor, recreateSchema, runClassicTranslator |
| Methods inherited from class org.hibernate.test.TestCase |
afterSessionFactoryBuilt, appliesTo, assertClassAssignability, assertElementTypeAssignability, configure, dialectIsCaseSensitive, dialectSupportsEmptyInList, fullTestName, getBaseForMappings, getCacheConcurrencyStrategy, getCfg, getDialect, getExtraProperties, getSessions, openSession, openSession, overrideCacheStrategy, readCommittedIsolationMaintained, reportSkip, reportSkip, runTest, setCfg, setUp, sfi |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
HQLTest
public HQLTest(java.lang.String x)
dropAfterFailure
protected boolean dropAfterFailure()
testJoinFetchCollectionOfValues
public void testJoinFetchCollectionOfValues()
testCollectionJoinsInSubselect
public void testCollectionJoinsInSubselect()
testEmptyInListFailureExpected
public void testEmptyInListFailureExpected()
testDateTimeArithmeticReturnTypesAndParameterGuessing
public void testDateTimeArithmeticReturnTypesAndParameterGuessing()
testReturnMetadata
public void testReturnMetadata()
check
private void check(org.hibernate.engine.query.ReturnMetadata returnMetadata,
boolean expectingEmptyTypes,
boolean expectingEmptyAliases)
testImplicitJoinsAlongWithCartesianProduct
public void testImplicitJoinsAlongWithCartesianProduct()
testSubselectBetween
public void testSubselectBetween()
testFetchOrderBy
public void testFetchOrderBy()
testCollectionOrderBy
public void testCollectionOrderBy()
testExpressionWithParamInFunction
public void testExpressionWithParamInFunction()
testCompositeKeysWithPropertyNamedId
public void testCompositeKeysWithPropertyNamedId()
testMaxindexHqlFunctionInElementAccessorFailureExpected
public void testMaxindexHqlFunctionInElementAccessorFailureExpected()
testMultipleElementAccessorOperatorsFailureExpected
public void testMultipleElementAccessorOperatorsFailureExpected()
throws java.lang.Exception
testKeyManyToOneJoinFailureExpected
public void testKeyManyToOneJoinFailureExpected()
testDuplicateExplicitJoinFailureExpected
public void testDuplicateExplicitJoinFailureExpected()
throws java.lang.Exception
testIndexWithExplicitJoin
public void testIndexWithExplicitJoin()
throws java.lang.Exception
testOneToManyMapIndex
public void testOneToManyMapIndex()
throws java.lang.Exception
testExplicitJoinMapIndex
public void testExplicitJoinMapIndex()
throws java.lang.Exception
testIndexFunction
public void testIndexFunction()
throws java.lang.Exception
testSelectCollectionOfValues
public void testSelectCollectionOfValues()
throws java.lang.Exception
testCollectionOfValues
public void testCollectionOfValues()
throws java.lang.Exception
testHHH719
public void testHHH719()
throws java.lang.Exception
testParameterListExpansion
public void testParameterListExpansion()
testComponentManyToOneDereferenceShortcut
public void testComponentManyToOneDereferenceShortcut()
testNestedCollectionImplicitJoins
public void testNestedCollectionImplicitJoins()
testExplicitJoinsInSubquery
public void testExplicitJoinsInSubquery()
testImplicitJoinsInGroupBy
public void testImplicitJoinsInGroupBy()
testCrazyIdFieldNames
public void testCrazyIdFieldNames()
testSizeFunctionAndProperty
public void testSizeFunctionAndProperty()
testFromOnly
public void testFromOnly()
throws java.lang.Exception
testJoinPathEndingInValueCollection
public void testJoinPathEndingInValueCollection()
testSerialJoinPathEndingInValueCollection
public void testSerialJoinPathEndingInValueCollection()
testImplicitJoinContainedByCollectionFunction
public void testImplicitJoinContainedByCollectionFunction()
testImpliedJoinInSubselectFrom
public void testImpliedJoinInSubselectFrom()
testSubselectImplicitJoins
public void testSubselectImplicitJoins()
testCollectionOfValuesSize
public void testCollectionOfValuesSize()
throws java.lang.Exception
testCollectionFunctions
public void testCollectionFunctions()
throws java.lang.Exception
testImplicitJoinInExplicitJoin
public void testImplicitJoinInExplicitJoin()
throws java.lang.Exception
testImpliedManyToManyProperty
public void testImpliedManyToManyProperty()
throws java.lang.Exception
testCollectionSize
public void testCollectionSize()
throws java.lang.Exception
testFetchCollectionOfValues
public void testFetchCollectionOfValues()
throws java.lang.Exception
testFetchList
public void testFetchList()
throws java.lang.Exception
testCollectionFetchWithExplicitThetaJoin
public void testCollectionFetchWithExplicitThetaJoin()
testListElementFunctionInWhere
public void testListElementFunctionInWhere()
throws java.lang.Exception
testManyToManyMaxElementFunctionInWhere
public void testManyToManyMaxElementFunctionInWhere()
throws java.lang.Exception
testCollectionIndexFunctionsInWhere
public void testCollectionIndexFunctionsInWhere()
throws java.lang.Exception
testCollectionIndicesInWhere
public void testCollectionIndicesInWhere()
throws java.lang.Exception
testIndicesInWhere
public void testIndicesInWhere()
throws java.lang.Exception
testCollectionElementInWhere
public void testCollectionElementInWhere()
throws java.lang.Exception
testElementsInWhere
public void testElementsInWhere()
throws java.lang.Exception
testNull
public void testNull()
throws java.lang.Exception
testSubstitutions
public void testSubstitutions()
throws java.lang.Exception
testWhere
public void testWhere()
throws java.lang.Exception
testEscapedQuote
public void testEscapedQuote()
throws java.lang.Exception
testCaseWhenElse
public void testCaseWhenElse()
testCaseExprWhenElse
public void testCaseExprWhenElse()
testInvalidHql
public void testInvalidHql()
throws java.lang.Exception
testWhereBetween
public void testWhereBetween()
throws java.lang.Exception
testConcatenation
public void testConcatenation()
testWhereLike
public void testWhereLike()
throws java.lang.Exception
testWhereIn
public void testWhereIn()
throws java.lang.Exception
testLiteralInFunction
public void testLiteralInFunction()
throws java.lang.Exception
testExpressionInFunction
public void testExpressionInFunction()
throws java.lang.Exception
testNotOrWhereClause
public void testNotOrWhereClause()
testComplexExpressionInFunction
public void testComplexExpressionInFunction()
throws java.lang.Exception
testStandardFunctions
public void testStandardFunctions()
throws java.lang.Exception
testOrderBy
public void testOrderBy()
throws java.lang.Exception
testGroupByFunction
public void testGroupByFunction()
testPolymorphism
public void testPolymorphism()
throws java.lang.Exception
testTokenReplacement
public void testTokenReplacement()
throws java.lang.Exception
testProduct
public void testProduct()
throws java.lang.Exception
testJoinedSubclassProduct
public void testJoinedSubclassProduct()
throws java.lang.Exception
testProjectProduct
public void testProjectProduct()
throws java.lang.Exception
testExplicitEntityJoins
public void testExplicitEntityJoins()
throws java.lang.Exception
testMultipleExplicitEntityJoins
public void testMultipleExplicitEntityJoins()
throws java.lang.Exception
testMultipleExplicitJoins
public void testMultipleExplicitJoins()
throws java.lang.Exception
testExplicitEntityJoinsWithRestriction
public void testExplicitEntityJoinsWithRestriction()
throws java.lang.Exception
testIdProperty
public void testIdProperty()
throws java.lang.Exception
testSubclassAssociation
public void testSubclassAssociation()
throws java.lang.Exception
testExplicitCollectionJoins
public void testExplicitCollectionJoins()
throws java.lang.Exception
testExplicitOuterJoinFetch
public void testExplicitOuterJoinFetch()
throws java.lang.Exception
testExplicitOuterJoinFetchWithSelect
public void testExplicitOuterJoinFetchWithSelect()
throws java.lang.Exception
testExplicitJoins
public void testExplicitJoins()
throws java.lang.Exception
testMultibyteCharacterConstant
public void testMultibyteCharacterConstant()
throws java.lang.Exception
- Test for HHH-559
testImplicitJoins
public void testImplicitJoins()
throws java.lang.Exception
testImplicitJoinInSelect
public void testImplicitJoinInSelect()
testSelectExpressions
public void testSelectExpressions()
testSelectStandardFunctionsNoParens
public void testSelectStandardFunctionsNoParens()
throws java.lang.Exception
testMapIndex
public void testMapIndex()
throws java.lang.Exception
testNamedParameters
public void testNamedParameters()
throws java.lang.Exception
testClassProperty
public void testClassProperty()
throws java.lang.Exception
testComponent
public void testComponent()
throws java.lang.Exception
testSelectEntity
public void testSelectEntity()
throws java.lang.Exception
testValueAggregate
public void testValueAggregate()
testAggregation
public void testAggregation()
throws java.lang.Exception
testAggregationReturnType
public void testAggregationReturnType()
testSelectProperty
public void testSelectProperty()
throws java.lang.Exception
testSelectEntityProperty
public void testSelectEntityProperty()
throws java.lang.Exception
testSelectDistinctAll
public void testSelectDistinctAll()
throws java.lang.Exception
testSelectAssociatedEntityId
public void testSelectAssociatedEntityId()
throws java.lang.Exception
testGroupBy
public void testGroupBy()
throws java.lang.Exception
testGroupByMultiple
public void testGroupByMultiple()
throws java.lang.Exception
testManyToMany
public void testManyToMany()
throws java.lang.Exception
testManyToManyElementFunctionInWhere
public void testManyToManyElementFunctionInWhere()
throws java.lang.Exception
testManyToManyElementFunctionInWhere2
public void testManyToManyElementFunctionInWhere2()
throws java.lang.Exception
testManyToManyFetch
public void testManyToManyFetch()
throws java.lang.Exception
testManyToManyIndexAccessor
public void testManyToManyIndexAccessor()
throws java.lang.Exception
testSelectNew
public void testSelectNew()
throws java.lang.Exception
testSimpleCorrelatedSubselect
public void testSimpleCorrelatedSubselect()
throws java.lang.Exception
testSimpleUncorrelatedSubselect
public void testSimpleUncorrelatedSubselect()
throws java.lang.Exception
testSimpleCorrelatedSubselect2
public void testSimpleCorrelatedSubselect2()
throws java.lang.Exception
testSimpleUncorrelatedSubselect2
public void testSimpleUncorrelatedSubselect2()
throws java.lang.Exception
testUncorrelatedSubselect2
public void testUncorrelatedSubselect2()
throws java.lang.Exception
testCorrelatedSubselect2
public void testCorrelatedSubselect2()
throws java.lang.Exception
testManyToManyJoinInSubselect
public void testManyToManyJoinInSubselect()
throws java.lang.Exception
testImplicitJoinInSubselect
public void testImplicitJoinInSubselect()
throws java.lang.Exception
testManyToOneSubselect
public void testManyToOneSubselect()
testPositionalParameters
public void testPositionalParameters()
throws java.lang.Exception
testKeywordPropertyName
public void testKeywordPropertyName()
throws java.lang.Exception
testJavaConstant
public void testJavaConstant()
throws java.lang.Exception
testClassName
public void testClassName()
throws java.lang.Exception
testSelectDialectFunction
public void testSelectDialectFunction()
throws java.lang.Exception
testTwoJoins
public void testTwoJoins()
throws java.lang.Exception
testToOneToManyManyJoinSequence
public void testToOneToManyManyJoinSequence()
throws java.lang.Exception
testToOneToManyJoinSequence
public void testToOneToManyJoinSequence()
throws java.lang.Exception
testSubclassExplicitJoin
public void testSubclassExplicitJoin()
throws java.lang.Exception
testMultipleExplicitCollectionJoins
public void testMultipleExplicitCollectionJoins()
throws java.lang.Exception
testSelectDistinctComposite
public void testSelectDistinctComposite()
throws java.lang.Exception
testDotComponent
public void testDotComponent()
throws java.lang.Exception
testOrderByCount
public void testOrderByCount()
throws java.lang.Exception
testHavingCount
public void testHavingCount()
throws java.lang.Exception
selectWhereElements
public void selectWhereElements()
throws java.lang.Exception
testCollectionOfComponents
public void testCollectionOfComponents()
throws java.lang.Exception
testNestedComponentIsNull
public void testNestedComponentIsNull()
testOneToOneJoinedFetch
public void testOneToOneJoinedFetch()
throws java.lang.Exception
testSubclassImplicitJoin
public void testSubclassImplicitJoin()
throws java.lang.Exception
testComponent2
public void testComponent2()
throws java.lang.Exception
testOneToOne
public void testOneToOne()
throws java.lang.Exception
testSelectClauseImplicitJoin
public void testSelectClauseImplicitJoin()
throws java.lang.Exception
testFromClauseImplicitJoin
public void testFromClauseImplicitJoin()
throws java.lang.Exception
testJoinedSubclassWithOrCondition
public void testJoinedSubclassWithOrCondition()
testImplicitJoinInFrom
public void testImplicitJoinInFrom()
testDuplicateImplicitJoinInSelect
public void testDuplicateImplicitJoinInSelect()
testConstructorNode
public void testConstructorNode()
throws java.lang.Exception
testIndexNode
public void testIndexNode()
throws java.lang.Exception
testExceptions
public void testExceptions()
throws java.lang.Exception
testSelectProperty2
public void testSelectProperty2()
throws java.lang.Exception
testSubclassWhere
public void testSubclassWhere()
throws java.lang.Exception
testNestedImplicitJoinsInSelect
public void testNestedImplicitJoinsInSelect()
throws java.lang.Exception
testNestedComponent
public void testNestedComponent()
throws java.lang.Exception
testNull2
public void testNull2()
throws java.lang.Exception
testUnknownFailureFromMultiTableTest
public void testUnknownFailureFromMultiTableTest()
testJoinInSubselect
public void testJoinInSubselect()
throws java.lang.Exception
testJoinedSubclassImplicitJoin
public void testJoinedSubclassImplicitJoin()
throws java.lang.Exception
testProjectProductJoinedSubclass
public void testProjectProductJoinedSubclass()
throws java.lang.Exception
testCorrelatedSubselect1
public void testCorrelatedSubselect1()
throws java.lang.Exception
testOuterAliasInSubselect
public void testOuterAliasInSubselect()
testFetch
public void testFetch()
throws java.lang.Exception
testOneToManyElementFunctionInWhere
public void testOneToManyElementFunctionInWhere()
throws java.lang.Exception
testManyToManyInJoin
public void testManyToManyInJoin()
throws java.lang.Exception
testManyToManyInSubselect
public void testManyToManyInSubselect()
throws java.lang.Exception
testOneToManyIndexAccess
public void testOneToManyIndexAccess()
throws java.lang.Exception
testImpliedSelect
public void testImpliedSelect()
throws java.lang.Exception
testVectorSubselect
public void testVectorSubselect()
testWierdSubselectImplicitJoinStuff
public void testWierdSubselectImplicitJoinStuff()
testCollectionsInSelect2
public void testCollectionsInSelect2()
throws java.lang.Exception
testAssociationPropertyWithoutAlias
public void testAssociationPropertyWithoutAlias()
throws java.lang.Exception
compileWithAstQueryTranslator
private void compileWithAstQueryTranslator(java.lang.String hql,
boolean scalar)
testComponentNoAlias
public void testComponentNoAlias()
throws java.lang.Exception
suite
public static junit.framework.Test suite()