we have fileprofile.hbm.xml , its used by fileprofile and change control module. Also it has associations.
In fileprofile module i need to only load fileprofile not other associated collections.
But Change control, i need to load fileprofile with associations , at the time of loading fileprofile entity itself.
In hbm , we have mentioned lazy="false" and fetch="join" in all associations. Becoz of this , while loading fileprofile its loading all associations . So its taking time to process query in fileprofile module.
If i set lazy="true" ,and remove fetch="join" , its working properly in fileprofile module.
In this case , while loading fileprofile entity in Change control module, its taking more time load the associated childs.
Is it any possible way change this property values during runtime.
or can i go for another of hbm files and entity per each module?
Kindly give me the possible solution
|