Thomas,

I've cc'd the struts-apps mailing list - this is probably a better place
to post these questions so they'll get more visibility and picked up by
google.

1.  I took the commits out of the save methods because I believe
ses.flush() is doing the same thing.  I could be wrong - you might want
to check with the hibernate folks.  I only modify these when they're
giving me issues - you could try removing the commits and see what
happens.

2.  It think this depends.  If your DAOs are mostly using the methods in
BaseDAOHibernate, you might add your transactions there.  In the apps
I've developed, I generally don't use Transactions much because I
haven't had a need (yet).

Hope this helps.  Please let me know if you find a better way to do
things in the DAOs, I'll be more than happy to add your enhancements.

Matt

> -----Original Message-----
> From: Thomas Nicholls [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 11, 2003 2:55 PM
> To: [EMAIL PROTECTED]
> Subject: Questions regarding the AppFuse implementation
> 
> 
> Hi Matt,
> 
> We're using AppFuse for a project and we have a couple of 
> questions regarding the implementation. I don't know whether 
> there is a proper mailinglist dedicated to issues such as 
> ours, but I can't seem to find the answers to our question by 
> searching on Google. If you have a few minutes I would really 
> appreciate any input you might have. Here are the questions:
> 
> 1. In the class BaseDAOHibernate you have the CRUD methods. I 
> guess the idea is that the DAOHibernate classes should extend 
> this class (just like you have done with UserDAOHibernate) 
> and then call the CRUD methods on the BaseDAOHibernate super 
> class. In the removeObject method in the BaseDAOHibernate 
> class you end with 'ses.connection().commit();', whereas in 
> the storeObject method you do not call commit. Why is that 
> and what do you recommend we do?
> 
> 2. Where do you propose we handle the Hibernate transactions? 
> Should it be in the DAOs or would a higher level be more appropriate?
> 
> By the way, thanks for a good blog and the JSPWiki tips they 
> are definitely useful!
> 
> Regards,
> Thomas
> 




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Struts-apps mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-apps

Reply via email to