| Unexpected Behaviour of Teneo while committing a transaction [message #495272] |
Wed, 04 November 2009 08:05  |
Anubhav Messages: 4 Registered: November 2009 |
Junior Member |
|
|
Hi,
Before I jump into problem its important I show you Domain class structure.
ClassA has list of ClassB (i.e. ClassA has EList getBList() method) and in HBM file loading of ClassB is defined as lazily.
Here is sample of getBList
Elist getBList()
{
if(null != b){
for(ClassB ref : bList){
.....
}
return bList;
}
Problem Statement:
Now when I load object of ClassA using HQL/Criteria and commiting the transcation (without making any object dirty),TENEO calls getBList() method of ClassA,which force to load bList as eagerly.
B Regards,
Anubhav
|
|
|
|
Powered by
FUDForum. Page generated in 0.01502 seconds