Hi,

I am using appfuse 1.9.4, After executing update via manager;  in my struts
action, when i try to get collection one-to-many it is always returns empty
and it does not even invoke hibernate sql on console. But if i execute
completely different call from some other struts action, i do get the
collection via "getOrderItems". This happens only after i make call to
update.

Is there something wrong with hibernate mapping?

Any help would be appreciated,

Thanks,
PSI


Following is more details of the code:
Hibernate mapping: OrderHdr 1------* OrderItem
OrderHdr class has following mapping: 

        <set name="orderItems" table="ORDER_ITEMS"  inverse="true"
lazy="true">
            <key>
                <column name="ORDER_HDR_ID" precision="22" scale="0"
not-null="true" />
            </key>
            <one-to-many class="com.bigsoft.core.model.OrderItem" />
        </set>

DaoHibernate:

this.getHibernateTemplate().saveOrUpdate(orderHdr);




-- 
View this message in context: 
http://www.nabble.com/hibernate-get-one-to-many-collection-empty-after-update-of-parent-tf3554348s2369.html#a9924345
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to