org.hibernate.test.immutable.entitywithmutablecollection
Class AbstractEntityWithOneToManyTest
java.lang.Object
org.hibernate.testing.junit4.BaseUnitTestCase
org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest
- Direct Known Subclasses:
- EntityWithInverseOneToManyJoinTest, EntityWithInverseOneToManyTest, EntityWithNonInverseOneToManyJoinTest, EntityWithNonInverseOneToManyTest, EntityWithNonInverseOneToManyUnidirTest, VersionedEntityWithInverseOneToManyFailureExpectedTest, VersionedEntityWithInverseOneToManyJoinFailureExpectedTest, VersionedEntityWithInverseOneToManyJoinTest, VersionedEntityWithInverseOneToManyTest, VersionedEntityWithNonInverseOneToManyJoinTest, VersionedEntityWithNonInverseOneToManyTest
public abstract class AbstractEntityWithOneToManyTest
- extends BaseCoreFunctionalTestCase
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, getMappings, getXmlFiles, onFailure, openSession, openSession, overrideCacheStrategy, prepareBasicRegistryBuilder, prepareBootstrapRegistryBuilder, readCommittedIsolationMaintained, rebuildSessionFactory, rebuildSessionFactoryOnError, serviceRegistry, sessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractEntityWithOneToManyTest
public AbstractEntityWithOneToManyTest()
configure
public void configure(Configuration cfg)
- Overrides:
configure
in class BaseCoreFunctionalTestCase
checkUpdateCountsAfterAddingExistingElement
protected boolean checkUpdateCountsAfterAddingExistingElement()
checkUpdateCountsAfterRemovingElementWithoutDelete
protected boolean checkUpdateCountsAfterRemovingElementWithoutDelete()
prepareTest
protected void prepareTest()
throws Exception
- Overrides:
prepareTest
in class BaseCoreFunctionalTestCase
- Throws:
Exception
testUpdateProperty
public void testUpdateProperty()
testCreateWithNonEmptyOneToManyCollectionOfNew
public void testCreateWithNonEmptyOneToManyCollectionOfNew()
testCreateWithNonEmptyOneToManyCollectionOfExisting
public void testCreateWithNonEmptyOneToManyCollectionOfExisting()
testAddNewOneToManyElementToPersistentEntity
public void testAddNewOneToManyElementToPersistentEntity()
testAddExistingOneToManyElementToPersistentEntity
public void testAddExistingOneToManyElementToPersistentEntity()
testCreateWithEmptyOneToManyCollectionUpdateWithExistingElement
public void testCreateWithEmptyOneToManyCollectionUpdateWithExistingElement()
testCreateWithNonEmptyOneToManyCollectionUpdateWithNewElement
public void testCreateWithNonEmptyOneToManyCollectionUpdateWithNewElement()
testCreateWithEmptyOneToManyCollectionMergeWithExistingElement
public void testCreateWithEmptyOneToManyCollectionMergeWithExistingElement()
testCreateWithNonEmptyOneToManyCollectionMergeWithNewElement
public void testCreateWithNonEmptyOneToManyCollectionMergeWithNewElement()
testMoveOneToManyElementToNewEntityCollection
public void testMoveOneToManyElementToNewEntityCollection()
testMoveOneToManyElementToExistingEntityCollection
public void testMoveOneToManyElementToExistingEntityCollection()
testRemoveOneToManyElementUsingUpdate
public void testRemoveOneToManyElementUsingUpdate()
testRemoveOneToManyElementUsingMerge
public void testRemoveOneToManyElementUsingMerge()
testDeleteOneToManyElement
public void testDeleteOneToManyElement()
testRemoveOneToManyElementByDelete
public void testRemoveOneToManyElementByDelete()
testRemoveOneToManyOrphanUsingUpdate
public void testRemoveOneToManyOrphanUsingUpdate()
testRemoveOneToManyOrphanUsingMerge
public void testRemoveOneToManyOrphanUsingMerge()
testDeleteOneToManyOrphan
public void testDeleteOneToManyOrphan()
testOneToManyCollectionOptimisticLockingWithMerge
public void testOneToManyCollectionOptimisticLockingWithMerge()
testOneToManyCollectionOptimisticLockingWithUpdate
public void testOneToManyCollectionOptimisticLockingWithUpdate()
clearCounts
protected void clearCounts()
assertInsertCount
protected void assertInsertCount(int expected)
assertUpdateCount
protected void assertUpdateCount(int expected)
assertDeleteCount
protected void assertDeleteCount(int expected)
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.