org.hibernate.test.annotations.onetomany
Class OneToManyTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.annotations.onetomany.OneToManyTest

public class OneToManyTest
extends BaseCoreFunctionalTestCase

Test various case of a one to many relationship.


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
OneToManyTest()
           
 
Method Summary
protected  Class[] getAnnotatedClasses()
           
protected  String[] getXmlFiles()
           
 void testCascadeDelete()
           
 void testCascadeDeleteOrphan()
           
 void testColumnDefinitionPropagation()
           
 void testFetching()
           
 void testJoinColumnConfiguredInXml()
           
 void testJoinColumns()
           
 void testListWithBagSemanticAndOrderBy()
           
 void testOrderByOnSuperclassProperty()
           
 void testSimpleOneToManyCollection()
           
 void testSimpleOneToManySet()
           
 void testUnidirectionalDefault()
           
 void testUnidirectionalExplicit()
           
 
Methods inherited from class org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
addMappings, addMappings, afterConfigurationBuilt, afterConfigurationBuilt, afterSessionFactoryBuilt, afterTest, applyCacheSettings, assertAllDataRemoved, beforeTest, buildConfiguration, buildServiceRegistry, cleanupCache, cleanupTest, configuration, configure, constructConfiguration, createSchema, generateBootstrapRegistry, getAnnotatedPackages, getBaseForMappings, getCacheConcurrencyStrategy, getDialect, getMappings, 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

OneToManyTest

public OneToManyTest()
Method Detail

testColumnDefinitionPropagation

public void testColumnDefinitionPropagation()
                                     throws Exception
Throws:
Exception

testListWithBagSemanticAndOrderBy

public void testListWithBagSemanticAndOrderBy()
                                       throws Exception
Throws:
Exception

testUnidirectionalDefault

public void testUnidirectionalDefault()
                               throws Exception
Throws:
Exception

testUnidirectionalExplicit

public void testUnidirectionalExplicit()
                                throws Exception
Throws:
Exception

testFetching

public void testFetching()
                  throws Exception
Throws:
Exception

testCascadeDeleteOrphan

public void testCascadeDeleteOrphan()
                             throws Exception
Throws:
Exception

testCascadeDelete

public void testCascadeDelete()
                       throws Exception
Throws:
Exception

testSimpleOneToManySet

public void testSimpleOneToManySet()
                            throws Exception
Throws:
Exception

testSimpleOneToManyCollection

public void testSimpleOneToManyCollection()
                                   throws Exception
Throws:
Exception

testJoinColumns

public void testJoinColumns()
                     throws Exception
Throws:
Exception

testOrderByOnSuperclassProperty

public void testOrderByOnSuperclassProperty()

testJoinColumnConfiguredInXml

public void testJoinColumnConfiguredInXml()

getAnnotatedClasses

protected Class[] getAnnotatedClasses()
Overrides:
getAnnotatedClasses in class BaseCoreFunctionalTestCase

getXmlFiles

protected String[] getXmlFiles()
Overrides:
getXmlFiles in class BaseCoreFunctionalTestCase


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