On the assumption that you have OpenSessionInView filter uncommented, then yes. Transaction boundary is on the manager, so if you are calling multiple managers from a single action during the request, there may be an issue. A lot also depends on the Cascade parameters you have set on your entity relationships.
Mike. On 11/15/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi All, > > I'm using AppFuse 2.0 + Hibernate + Struts. > > I'm having some issues with persisting entities to the database where I > make > changes to a Parent entity and some related Child entities and then save > the > parent. > > I have been assuming that GenericManager and GenericDao classes will > seamlessly handle all the back end stuff (transactions, db updates etc.), > but > I'm getting weird Hibernate errors. I thought I'd better do a reality > check > before I troll back through my code looking for causes of the problem. > > Hence my question. Am I right in assuming that GenericManager and > GenericDao will happily handle updates to Parent and Child entities in the > one session? > > TIA, > > Rob Hills > Waikiki, Western Australia > Mobile +61 (412) 904-357 > Fax: +61 (8) 9529-2137 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
