[RomaFramework-dev] [ romaframework-Feature Requests-1683917 ] JDOPersistenceAspect should work als
Brought to you by:
lvca
|
From: SourceForge.net <no...@so...> - 2007-05-04 09:28:42
|
Feature Requests item #1683917, was opened at 2007-03-19 20:43 Message generated for change (Comment added) made by lvca You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=824593&aid=1683917&group_id=162641 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: JDO-JPOX-PersistenceAspect Group: None >Status: Closed Priority: 6 Private: No Submitted By: Luca Garulli (lvca) Assigned to: Luca Garulli (lvca) Summary: JDOPersistenceAspect should work also in no-detach mode Initial Comment: Current JDO/JPOX aspect works always in detach mode. In few words it detaches entire object graph (following fetch plans). We need a much deeper tuning avoiding detaching and benefit of JDO Lazy Loading feature. ---------------------------------------------------------------------- >Comment By: Luca Garulli (lvca) Date: 2007-05-04 11:28 Message: Logged In: YES user_id=75115 Originator: YES Create add in Spring's applicationContext.xml file two new services: <bean id="TxPersistenceAspect" class="org.romaframework.aspect.persistence.jdo.JDOTxPersistenceAspect" singleton="false"> <constructor-arg> <ref bean="PersistenceAspect" /> </constructor-arg> </bean> <bean id="NoTxPersistenceAspect" class="org.romaframework.aspect.persistence.jdo.JDONoTxPersistenceAspect" singleton="false"> <constructor-arg> <ref bean="PersistenceAspect" /> </constructor-arg> </bean> And in your app get it by ObjectContext.getInstance().getComponent( "NoTxPersistenceAspect" ); ---------------------------------------------------------------------- Comment By: Luca Garulli (lvca) Date: 2007-05-04 11:28 Message: Logged In: YES user_id=75115 Originator: YES Resolved. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=824593&aid=1683917&group_id=162641 |