Announcement Announcement Module
No announcement yet.
Entity Proxy with Inner Field Entity implementation Problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Entity Proxy with Inner Field Entity implementation Problem

    I have dependencies between entities that is StepField Entity depends on Field Entity, and this have the following spring XML snippet Code:

    <!-- StepField Entity Proxy with inner StepField Entity implementation -->
        <bean id="stepFieldDao" class="org.springframework.aop.framework.ProxyFactoryBean">
            <property name="target">
                <bean class="">
                    <property name="sessionFactory"><ref local="sessionFactory"/></property>
                    <property name="procedureStepDao"><ref bean="procedureStepDao"/></property>
                    <property name="fieldDao"><ref bean="fieldDao"/></property>
                    <!-- StepField entity property merge-point -->
            <property name="proxyInterfaces">
            <property name="interceptorNames">
    Now when I try to reference the field DAO as follows this.getFieldDao() from inside the StepFieldDaoImpl it keeps returning it as null.

    however when I put break point at setFieldDao(FieldDao fieldDao) inside the StepFieldDaoBase it set it successfully but when it try to reference it; it seems it re-instantiate the StepFieldDaoImpl from scratch and this makes fieldDao equals to null

    Can any body helps?
    Last edited by Ali Abdel-Aziz; Apr 28th, 2008, 01:22 AM.