java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.hibernate.test.TestCase
org.hibernate.test.dynamicentity.interceptor.InterceptorDynamicEntityTest
- All Implemented Interfaces:
- junit.framework.Test
- public class InterceptorDynamicEntityTest
- extends org.hibernate.test.TestCase
Demonstrates custom interpretation of entity-name through
an Interceptor.
Here, we are generating dynamic
proxies on the fly to represent
our entities. Because of this, Hibernate would not be able to
determine the appropriate entity mapping to use given one of
these proxies (they are named like $Proxy1, or such). Thus, we
plug a custom Interceptor into the session to perform this
entity-name interpretation.
| Fields inherited from class junit.framework.TestCase |
|
| Methods inherited from class org.hibernate.test.TestCase |
afterSessionFactoryBuilt, appliesTo, assertClassAssignability, assertElementTypeAssignability, configure, dialectIsCaseSensitive, dialectSupportsEmptyInList, dropAfterFailure, fullTestName, getBaseForMappings, getCacheConcurrencyStrategy, getCfg, getDialect, getExtraProperties, getSessions, openSession, openSession, overrideCacheStrategy, readCommittedIsolationMaintained, recreateSchema, reportSkip, reportSkip, runTest, setCfg, setUp, sfi |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
InterceptorDynamicEntityTest
public InterceptorDynamicEntityTest(java.lang.String x)
getMappings
protected java.lang.String[] getMappings()
suite
public static junit.framework.TestSuite suite()
testIt
public void testIt()