org.hibernate.test.sql.hand.query
Class NativeSQLQueriesTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.sql.hand.query.NativeSQLQueriesTest

public class NativeSQLQueriesTest
extends BaseCoreFunctionalTestCase

Tests of various features of native SQL queries.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
BaseCoreFunctionalTestCase.RollbackWork
 
Field Summary
 
Fields inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
DIALECT, NO_CLASSES, NO_MAPPINGS, USE_NEW_METADATA_MAPPINGS, VALIDATE_DATA_CLEANUP
 
Constructor Summary
NativeSQLQueriesTest()
           
 
Method Summary
 void configure(Configuration cfg)
           
protected  String getDescriptionsSQL()
           
protected  String getEmploymentSQL()
           
protected  String getEmploymentSQLMixedScalarEntity()
           
 String[] getMappings()
           
protected  String getOrganizationFetchJoinEmploymentSQL()
           
protected  String getOrganizationJoinEmploymentSQL()
           
protected  String getOrgEmpPersonSQL()
           
protected  String getOrgEmpRegionSQL()
           
protected  String getPhotosSQL()
           
 void testAddJoinForManyToMany()
           
 void testAutoDetectAliasing()
           
 void testCompositeIdJoins()
           
 void testExplicitReturnAPI()
           
 void testFailOnNoAddEntityOrScalar()
           
 void testImageTypeInSQLQuery()
           
 void testManualSynchronization()
           
 void testMappedAliasStrategy()
           
 void testMixAndMatchEntityScalar()
           
 void testResultSetMappingDefinition()
           
 void testScalarValues()
           
 void testSQLQueryInterface()
           
 void testTextTypeInSQLQuery()
           
 
Methods inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
addMappings, addMappings, afterConfigurationBuilt, afterConfigurationBuilt, afterSessionFactoryBuilt, afterTest, applyCacheSettings, assertAllDataRemoved, beforeTest, buildConfiguration, buildServiceRegistry, cleanupCache, cleanupTest, configuration, constructConfiguration, createSchema, generateBootstrapRegistry, getAnnotatedClasses, getAnnotatedPackages, getBaseForMappings, getCacheConcurrencyStrategy, getDialect, getXmlFiles, onFailure, openSession, openSession, overrideCacheStrategy, prepareBasicRegistryBuilder, prepareBootstrapRegistryBuilder, prepareTest, readCommittedIsolationMaintained, rebuildSessionFactory, rebuildSessionFactoryOnError, serviceRegistry, sessionFactory
 
Methods inherited from class org.hibernate.testing.junit4.BaseUnitTestCase
releaseTransactions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeSQLQueriesTest

public NativeSQLQueriesTest()
Method Detail

getMappings

public String[] getMappings()
Overrides:
getMappings in class BaseCoreFunctionalTestCase

configure

public void configure(Configuration cfg)
Overrides:
configure in class BaseCoreFunctionalTestCase

getOrganizationFetchJoinEmploymentSQL

protected String getOrganizationFetchJoinEmploymentSQL()

getOrganizationJoinEmploymentSQL

protected String getOrganizationJoinEmploymentSQL()

getEmploymentSQL

protected String getEmploymentSQL()

getEmploymentSQLMixedScalarEntity

protected String getEmploymentSQLMixedScalarEntity()

getOrgEmpRegionSQL

protected String getOrgEmpRegionSQL()

getOrgEmpPersonSQL

protected String getOrgEmpPersonSQL()

getDescriptionsSQL

protected String getDescriptionsSQL()

getPhotosSQL

protected String getPhotosSQL()

testFailOnNoAddEntityOrScalar

public void testFailOnNoAddEntityOrScalar()

testManualSynchronization

public void testManualSynchronization()

testSQLQueryInterface

public void testSQLQueryInterface()

testResultSetMappingDefinition

public void testResultSetMappingDefinition()

testScalarValues

public void testScalarValues()
                      throws Exception
Throws:
Exception

testMappedAliasStrategy

public void testMappedAliasStrategy()

testCompositeIdJoins

public void testCompositeIdJoins()

testAutoDetectAliasing

public void testAutoDetectAliasing()

testExplicitReturnAPI

public void testExplicitReturnAPI()

testMixAndMatchEntityScalar

public void testMixAndMatchEntityScalar()

testAddJoinForManyToMany

public void testAddJoinForManyToMany()

testTextTypeInSQLQuery

public void testTextTypeInSQLQuery()

testImageTypeInSQLQuery

public void testImageTypeInSQLQuery()


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.