org.hibernate.test.annotations.manytomany
Class ManyToManyTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.annotations.manytomany.ManyToManyTest
Direct Known Subclasses:
ManyToManyMaxFetchDepth0Test

public class ManyToManyTest
extends BaseCoreFunctionalTestCase

Many to many tests


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
ManyToManyTest()
           
 
Method Summary
protected  Class[] getAnnotatedClasses()
           
 void testAssociationTableAndOrderBy()
           
 void testAssociationTableAndOrderByWithSet()
           
 void testAssociationTableUniqueConstraints()
           
 void testBasic()
           
 void testCanUseCriteriaQuery()
           
 void testCompositePk()
           
 void testDefault()
           
 void testDefaultCompositePk()
           
 void testJoinedSubclassManyToMany()
           
 void testJoinedSubclassManyToManyWithNonPkReference()
           
 void testManyToManyEmbeddableBiDirectionalDotNotationInMappedBy()
           
 void testMappedBy()
           
 void testOneToManyEmbeddableBiDirectionalDotNotationInMappedBy()
           
 void testOrderByEmployee()
           
 void testReferencedColumnNameToSuperclass()
           
 void testRemoveInBetween()
           
 void testSelf()
           
 
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, 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

ManyToManyTest

public ManyToManyTest()
Method Detail

testDefault

public void testDefault()
                 throws Exception
Throws:
Exception

testCanUseCriteriaQuery

public void testCanUseCriteriaQuery()
                             throws Exception
Throws:
Exception

testDefaultCompositePk

public void testDefaultCompositePk()
                            throws Exception
Throws:
Exception

testMappedBy

public void testMappedBy()
                  throws Exception
Throws:
Exception

testBasic

public void testBasic()
               throws Exception
Throws:
Exception

testOrderByEmployee

public void testOrderByEmployee()
                         throws Exception
Throws:
Exception

testRemoveInBetween

public void testRemoveInBetween()
                         throws Exception
Throws:
Exception

testSelf

public void testSelf()
              throws Exception
Throws:
Exception

testCompositePk

public void testCompositePk()
                     throws Exception
Throws:
Exception

testAssociationTableUniqueConstraints

public void testAssociationTableUniqueConstraints()
                                           throws Exception
Throws:
Exception

testAssociationTableAndOrderBy

public void testAssociationTableAndOrderBy()
                                    throws Exception
Throws:
Exception

testAssociationTableAndOrderByWithSet

public void testAssociationTableAndOrderByWithSet()
                                           throws Exception
Throws:
Exception

testJoinedSubclassManyToMany

public void testJoinedSubclassManyToMany()
                                  throws Exception
Throws:
Exception

testJoinedSubclassManyToManyWithNonPkReference

public void testJoinedSubclassManyToManyWithNonPkReference()
                                                    throws Exception
Throws:
Exception

testReferencedColumnNameToSuperclass

public void testReferencedColumnNameToSuperclass()
                                          throws Exception
Throws:
Exception

testManyToManyEmbeddableBiDirectionalDotNotationInMappedBy

public void testManyToManyEmbeddableBiDirectionalDotNotationInMappedBy()
                                                                throws Exception
Throws:
Exception

testOneToManyEmbeddableBiDirectionalDotNotationInMappedBy

public void testOneToManyEmbeddableBiDirectionalDotNotationInMappedBy()
                                                               throws Exception
Throws:
Exception

getAnnotatedClasses

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


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