Author: mputz
Date: 2009-07-09 04:00:21 -0400 (Thu, 09 Jul 2009)
New Revision: 13531
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-sar/conf/hibernate/portal/domain.hbm.xml
Log:
JBPORTAL-2384: Fix hibernate mappings to address N+1 select problem on accessing
ObjectNode.children
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-sar/conf/hibernate/portal/domain.hbm.xml
===================================================================
---
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-sar/conf/hibernate/portal/domain.hbm.xml 2009-07-08
10:53:04 UTC (rev 13530)
+++
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-sar/conf/hibernate/portal/domain.hbm.xml 2009-07-09
08:00:21 UTC (rev 13531)
@@ -54,7 +54,7 @@
name="children"
inverse="true"
cascade="none"
- fetch="select"
+ fetch="subselect"
lazy="true">
<cache usage="@portal.hibernate.cache.usage(a)"/>
<key column="PARENT_KEY"/>
@@ -73,7 +73,9 @@
name="object"
class="org.jboss.portal.core.impl.model.portal.PortalObjectImpl"
cascade="none"
- fetch="select">
+ fetch="join"
+ constrained="true"
+ lazy="false">
</one-to-one>
<map
name="securityConstraints"
Show replies by date