org.hibernate.test.readonly
Class ReadOnlySessionLazyNonLazyTest

java.lang.Object
  extended by org.hibernate.testing.junit4.BaseUnitTestCase
      extended by org.hibernate.testing.junit4.BaseCoreFunctionalTestCase
          extended by org.hibernate.test.readonly.AbstractReadOnlyTest
              extended by org.hibernate.test.readonly.ReadOnlySessionLazyNonLazyTest

public class ReadOnlySessionLazyNonLazyTest
extends AbstractReadOnlyTest

Model: Container |-- N : 1 -- noProxyOwner (property-ref="name" lazy="no-proxy" cascade="all") |-- N : 1 -- proxyOwner (property-ref="name" lazy="proxy" cascade="all") |-- N : 1 -- nonLazyOwner (property-ref="name" lazy="false" cascade="all") |-- N : 1 -- noProxyInfo" (lazy="no-proxy" cascade="all") |-- N : 1 -- proxyInfo (lazy="proxy" cascade="all" |-- N : 1 -- nonLazyInfo" (lazy="false" cascade="all") | |-- 1 : N -- lazyDataPoints" (lazy="true" inverse="false" cascade="all") |-- 1 : N -- nonLazySelectDataPoints" (lazy="false" inverse="false" cascade="all" fetch="select") |-- 1 : N -- nonLazyJoinDataPoints" (lazy="false" inverse="false" cascade="all" fetch="join") Note: the following many-to-one properties use a property-ref so they are initialized, regardless of how the lazy attribute is mapped: noProxyOwner, proxyOwner, nonLazyOwner


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
ReadOnlySessionLazyNonLazyTest()
           
 
Method Summary
 String[] getMappings()
           
 void testDefaultModifiableWithFilterCollectionEntities()
           
 void testDefaultModifiableWithQueryForEntity()
           
 void testDefaultModifiableWithReadOnlyFilterCollectionEntities()
           
 void testDefaultModifiableWithReadOnlyQueryForCollectionEntities()
           
 void testDefaultModifiableWithReadOnlyQueryForEntity()
           
 void testDefaultReadOnlyWithFilterCollectionEntities()
           
 void testDefaultReadOnlyWithModifiableFilterCollectionEntities()
           
 void testDefaultReadOnlyWithModifiableQueryForEntity()
           
 void testDefaultReadOnlyWithQueryForEntity()
           
 void testExistingModifiableAfterSetSessionReadOnly()
           
 void testExistingReadOnlyAfterSetSessionModifiable()
           
 void testExistingReadOnlyAfterSetSessionModifiableExisting()
           
 void testExistingReadOnlyAfterSetSessionModifiableExistingEntityReadOnly()
           
 void testExistingReadOnlyAfterSetSessionModifiableExistingProxyReadOnly()
           
 void testExistingReadOnlyAfterSetSessionModifiableProxyExisting()
           
 
Methods inherited from class org.hibernate.test.readonly.AbstractReadOnlyTest
assertDeleteCount, assertInsertCount, assertUpdateCount, clearCounts, configure, getCacheConcurrencyStrategy, getSessionCacheMode, openSession
 
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, 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

ReadOnlySessionLazyNonLazyTest

public ReadOnlySessionLazyNonLazyTest()
Method Detail

getMappings

public String[] getMappings()
Overrides:
getMappings in class BaseCoreFunctionalTestCase

testExistingModifiableAfterSetSessionReadOnly

public void testExistingModifiableAfterSetSessionReadOnly()

testExistingReadOnlyAfterSetSessionModifiable

public void testExistingReadOnlyAfterSetSessionModifiable()

testExistingReadOnlyAfterSetSessionModifiableExisting

public void testExistingReadOnlyAfterSetSessionModifiableExisting()

testExistingReadOnlyAfterSetSessionModifiableExistingEntityReadOnly

public void testExistingReadOnlyAfterSetSessionModifiableExistingEntityReadOnly()

testExistingReadOnlyAfterSetSessionModifiableProxyExisting

public void testExistingReadOnlyAfterSetSessionModifiableProxyExisting()

testExistingReadOnlyAfterSetSessionModifiableExistingProxyReadOnly

public void testExistingReadOnlyAfterSetSessionModifiableExistingProxyReadOnly()

testDefaultModifiableWithReadOnlyQueryForEntity

public void testDefaultModifiableWithReadOnlyQueryForEntity()

testDefaultReadOnlyWithModifiableQueryForEntity

public void testDefaultReadOnlyWithModifiableQueryForEntity()

testDefaultReadOnlyWithQueryForEntity

public void testDefaultReadOnlyWithQueryForEntity()

testDefaultModifiableWithQueryForEntity

public void testDefaultModifiableWithQueryForEntity()

testDefaultModifiableWithReadOnlyQueryForCollectionEntities

public void testDefaultModifiableWithReadOnlyQueryForCollectionEntities()

testDefaultReadOnlyWithModifiableFilterCollectionEntities

public void testDefaultReadOnlyWithModifiableFilterCollectionEntities()

testDefaultModifiableWithReadOnlyFilterCollectionEntities

public void testDefaultModifiableWithReadOnlyFilterCollectionEntities()

testDefaultReadOnlyWithFilterCollectionEntities

public void testDefaultReadOnlyWithFilterCollectionEntities()

testDefaultModifiableWithFilterCollectionEntities

public void testDefaultModifiableWithFilterCollectionEntities()


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