org.hibernate.test.jpa.cascade
Class CascadeTest
java.lang.Object
org.hibernate.testing.junit4.BaseUnitTestCase
org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
org.hibernate.test.jpa.AbstractJPATest
org.hibernate.test.jpa.cascade.CascadeTest
public class CascadeTest
- extends AbstractJPATest
According to the JPA spec, persist()ing an entity should throw an exception
when said entity contains a reference to a transient entity through a mapped
association where that association is not marked for cascading the persist
operation.
This test-case tests that requirement in the various association style
scenarios such as many-to-one, one-to-one, many-to-one (property-ref),
one-to-one (property-ref). Additionally, it performs each of these tests
in both generated and assigned identifier usages...
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, prepareTest, readCommittedIsolationMaintained, rebuildSessionFactory, rebuildSessionFactoryOnError, serviceRegistry, sessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CascadeTest
public CascadeTest()
getMappings
public String[] getMappings()
- Overrides:
getMappings
in class AbstractJPATest
testManyToOneGeneratedIdsOnSave
public void testManyToOneGeneratedIdsOnSave()
testManyToOneGeneratedIds
public void testManyToOneGeneratedIds()
testManyToOneAssignedIds
public void testManyToOneAssignedIds()
testOneToOneGeneratedIds
public void testOneToOneGeneratedIds()
testOneToOneAssignedIds
public void testOneToOneAssignedIds()
testManyToOnePropertyRefGeneratedIds
public void testManyToOnePropertyRefGeneratedIds()
testManyToOnePropertyRefAssignedIds
public void testManyToOnePropertyRefAssignedIds()
testOneToOnePropertyRefGeneratedIds
public void testOneToOnePropertyRefGeneratedIds()
testOneToOnePropertyRefAssignedIds
public void testOneToOnePropertyRefAssignedIds()
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.