diff --git a/reference/en/modules/basic_mapping.xml b/reference/en/modules/basic_mapping.xml index 069d1a4872..0572ecb75d 100644 --- a/reference/en/modules/basic_mapping.xml +++ b/reference/en/modules/basic_mapping.xml @@ -1905,7 +1905,7 @@ table="tablename" schema="owner" catalog="catalog" - sequential-select="true|false" + outer-join="true|false" inverse="true|false"> @@ -1934,8 +1934,8 @@ - sequential-select (optional - defaults to false): - If enabled for a join defined on a subclass, then rather than joining, a sequential + outer-join (optional - defaults to true): + If disabled for a join defined on a subclass, then rather than joining, a sequential select will be issued if a row turns out to represent an instance of the subclass. diff --git a/reference/en/modules/performance.xml b/reference/en/modules/performance.xml index 31bc83130c..520d51e101 100644 --- a/reference/en/modules/performance.xml +++ b/reference/en/modules/performance.xml @@ -215,7 +215,11 @@ for that class. The recommended approach is to specify the class itself: - ]]> + ]]> + + or, as a shorthand, just write lazy="true": + + ]]> The runtime type of the proxies will be a subclass of Order. Note that @@ -227,9 +231,9 @@ classes, eg. - + ...... - + ..... ]]> @@ -281,9 +285,9 @@ System.out.println( dc.getWeight() ); // 11.0]]> that declares its business methods. You should specify these interfaces in the mapping file. eg. - + ...... - + ..... ]]> @@ -293,16 +297,16 @@ System.out.println( dc.getWeight() ); // 11.0]]> DomesticCat implements the interface IDomesticCat. Then proxies for instances of Cat and DomesticCat may be returned by load() or iterate(). (Note that find() - does not return proxies.) + does not usually return proxies.) - + Relationships are also lazily initialized. This means you must declare any properties to be of - type ICat, not Cat. + type Cat, not CatImpl. @@ -534,7 +538,7 @@ ICat fritz = (ICat) iter.next();]]> org.hibernate.cache.TreeCacheProvider clustered (ip multicast), transactional yes (replication) - + yes @@ -716,9 +720,12 @@ ICat fritz = (ICat) iter.next();]]> Whenever you pass an object to save(), update() or saveOrUpdate() and whenever you retrieve an object using - load(), find(), iterate(), - or filter(), that object is added to the internal cache of the - Session. When flush() is subsequently called, + load(), get(), list(), + iterate() or scroll(), that object is added + to the internal cache of the Session. + + + When flush() is subsequently called, the state of that object will be synchronized with the database. If you do not want this synchronization to occur or if you are processing a huge number of objects and need to manage memory efficiently, the evict() method may be