org.hibernate.test.nonflushedchanges
Class MergeTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.nonflushedchanges.AbstractOperationTestCase
              extended by org.hibernate.test.nonflushedchanges.MergeTest

public class MergeTest
extends AbstractOperationTestCase

adapted this from "ops" tests version


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
MergeTest()
           
 
Method Summary
 void testDeleteAndMerge()
           
 void testMergeBidiForeignKeyOneToOne()
           
 void testMergeBidiPrimayKeyOneToOne()
           
 void testMergeDeepTree()
           
 void testMergeDeepTreeWithGeneratedId()
           
 void testMergeManaged()
           
 void testMergeManagedInitializedCollection()
           
 void testMergeManagedUninitializedCollection()
           
 void testMergeManyToManyWithCollectionDeference()
           
 void testMergeStaleVersionFails()
           
 void testMergeTree()
           
 void testMergeTreeWithGeneratedId()
           
 void testNoExtraUpdatesOnMerge()
           
 void testNoExtraUpdatesOnMergeVersioned()
           
 void testNoExtraUpdatesOnMergeVersionedWithCollection()
           
 void testNoExtraUpdatesOnMergeWithCollection()
           
 void testNoExtraUpdatesOnPersistentMergeVersionedWithCollection()
           
 void testPersistThenMergeInSameTxnWithTimestamp()
           
 void testPersistThenMergeInSameTxnWithVersion()
           
 void testRecursiveMergeTransient()
           
 
Methods inherited from class org.hibernate.test.nonflushedchanges.AbstractOperationTestCase
applyNonFlushedChangesToNewSessionCloseOldSession, assertDeleteCount, assertFetchCount, assertInsertCount, assertUpdateCount, clearCounts, configure, getCacheConcurrencyStrategy, getMappings, getOldToNewEntityRefMap
 
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, 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

MergeTest

public MergeTest()
Method Detail

testMergeStaleVersionFails

public void testMergeStaleVersionFails()
                                throws Exception
Throws:
Exception

testMergeBidiPrimayKeyOneToOne

public void testMergeBidiPrimayKeyOneToOne()
                                    throws Exception
Throws:
Exception

testMergeBidiForeignKeyOneToOne

public void testMergeBidiForeignKeyOneToOne()
                                     throws Exception
Throws:
Exception

testNoExtraUpdatesOnMerge

public void testNoExtraUpdatesOnMerge()
                               throws Exception
Throws:
Exception

testNoExtraUpdatesOnMergeWithCollection

public void testNoExtraUpdatesOnMergeWithCollection()
                                             throws Exception
Throws:
Exception

testNoExtraUpdatesOnMergeVersioned

public void testNoExtraUpdatesOnMergeVersioned()
                                        throws Exception
Throws:
Exception

testNoExtraUpdatesOnMergeVersionedWithCollection

public void testNoExtraUpdatesOnMergeVersionedWithCollection()
                                                      throws Exception
Throws:
Exception

testNoExtraUpdatesOnPersistentMergeVersionedWithCollection

public void testNoExtraUpdatesOnPersistentMergeVersionedWithCollection()
                                                                throws Exception
Throws:
Exception

testPersistThenMergeInSameTxnWithVersion

public void testPersistThenMergeInSameTxnWithVersion()
                                              throws Exception
Throws:
Exception

testPersistThenMergeInSameTxnWithTimestamp

public void testPersistThenMergeInSameTxnWithTimestamp()
                                                throws Exception
Throws:
Exception

testMergeDeepTree

public void testMergeDeepTree()
                       throws Exception
Throws:
Exception

testMergeDeepTreeWithGeneratedId

public void testMergeDeepTreeWithGeneratedId()
                                      throws Exception
Throws:
Exception

testMergeTree

public void testMergeTree()
                   throws Exception
Throws:
Exception

testMergeTreeWithGeneratedId

public void testMergeTreeWithGeneratedId()
                                  throws Exception
Throws:
Exception

testMergeManaged

public void testMergeManaged()
                      throws Exception
Throws:
Exception

testMergeManagedUninitializedCollection

public void testMergeManagedUninitializedCollection()
                                             throws Exception
Throws:
Exception

testMergeManagedInitializedCollection

public void testMergeManagedInitializedCollection()
                                           throws Exception
Throws:
Exception

testRecursiveMergeTransient

public void testRecursiveMergeTransient()
                                 throws Exception
Throws:
Exception

testDeleteAndMerge

public void testDeleteAndMerge()
                        throws Exception
Throws:
Exception

testMergeManyToManyWithCollectionDeference

public void testMergeManyToManyWithCollectionDeference()
                                                throws Exception
Throws:
Exception


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