org.hibernate.test.annotations.entity
Class BasicHibernateAnnotationsTest
java.lang.Object
org.hibernate.testing.junit4.BaseUnitTestCase
org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
org.hibernate.test.annotations.entity.BasicHibernateAnnotationsTest
public class BasicHibernateAnnotationsTest
- 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, configure, constructConfiguration, createSchema, generateBootstrapRegistry, getBaseForMappings, getCacheConcurrencyStrategy, getDialect, getMappings, getXmlFiles, onFailure, openSession, openSession, overrideCacheStrategy, prepareBasicRegistryBuilder, prepareBootstrapRegistryBuilder, prepareTest, readCommittedIsolationMaintained, rebuildSessionFactory, rebuildSessionFactoryOnError, serviceRegistry, sessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicHibernateAnnotationsTest
public BasicHibernateAnnotationsTest()
testEntity
public void testEntity()
throws Exception
- Throws:
Exception
testVersioning
public void testVersioning()
throws Exception
- Throws:
Exception
testPolymorphism
public void testPolymorphism()
throws Exception
- Throws:
Exception
testType
public void testType()
throws Exception
- Throws:
Exception
testImportTypeDefinitions
public void testImportTypeDefinitions()
throws Exception
- Throws:
Exception
testNonLazy
public void testNonLazy()
throws Exception
- Throws:
Exception
testCache
public void testCache()
throws Exception
- Throws:
Exception
testFilterOnCollection
public void testFilterOnCollection()
testCascadedDeleteOfChildEntitiesBug2
public void testCascadedDeleteOfChildEntitiesBug2()
testCascadedDeleteOfChildOneToOne
public void testCascadedDeleteOfChildOneToOne()
testFilter
public void testFilter()
throws Exception
- Throws:
Exception
testInheritFiltersFromMappedSuperclass
public void testInheritFiltersFromMappedSuperclass()
throws Exception
- Tests the functionality of inheriting @Filter and @FilterDef annotations
defined on a parent MappedSuperclass(s)
- Throws:
Exception
testParameterizedType
public void testParameterizedType()
throws Exception
- Throws:
Exception
testSerialized
public void testSerialized()
throws Exception
- Throws:
Exception
testCompositeType
public void testCompositeType()
throws Exception
- Throws:
Exception
testFormula
public void testFormula()
throws Exception
- Throws:
Exception
testTypeDefNameAndDefaultForTypeAttributes
public void testTypeDefNameAndDefaultForTypeAttributes()
testTypeDefWithoutNameAndDefaultForTypeAttributes
public void testTypeDefWithoutNameAndDefaultForTypeAttributes()
testSetSimpleValueTypeNameInSecondPass
public void testSetSimpleValueTypeNameInSecondPass()
throws Exception
- A custom type is used in the base class, but defined in the derived class.
This would have caused an exception, because the base class is processed
BEFORE the derived class, and the custom type is not yet defined. However,
it works now because we are setting the typeName for SimpleValue in the second
pass.
- Throws:
Exception
getAnnotatedClasses
protected Class<?>[] getAnnotatedClasses()
- Overrides:
getAnnotatedClasses
in class BaseCoreFunctionalTestCase
getAnnotatedPackages
protected String[] getAnnotatedPackages()
- Overrides:
getAnnotatedPackages
in class BaseCoreFunctionalTestCase
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.