Author: mputz
Date: 2009-07-10 14:27:56 -0400 (Fri, 10 Jul 2009)
New Revision: 13541
Modified:
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-sar/conf/hibernate/portal/domain.hbm.xml
Log:
Reverted: 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-10
18:27:33 UTC (rev 13540)
+++
branches/Enterprise_Portal_Platform_4_3/core/src/resources/portal-core-sar/conf/hibernate/portal/domain.hbm.xml 2009-07-10
18:27:56 UTC (rev 13541)
@@ -54,7 +54,7 @@
name="children"
inverse="true"
cascade="none"
- fetch="subselect"
+ fetch="select"
lazy="true">
<cache usage="@portal.hibernate.cache.usage(a)"/>
<key column="PARENT_KEY"/>
@@ -73,9 +73,7 @@
name="object"
class="org.jboss.portal.core.impl.model.portal.PortalObjectImpl"
cascade="none"
- fetch="join"
- constrained="true"
- lazy="false">
+ fetch="select">
</one-to-one>
<map
name="securityConstraints"
Show replies by date