-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate w/Struts1 vs Struts2
PostPosted: Fri Nov 13, 2009 6:12 pm 
Beginner
Beginner

Joined: Fri Nov 13, 2009 4:05 pm
Posts: 30
In one of our legacy web applications, we leveraged Struts 1.2 with Hibernate 3.2.2GA. We utilized the hiberate.cfg.xml configuration file that defined our mappings to our Entity annotated beans. We also created DAO interface objects and HibernateDAO objects that extended a GenericHibernateDAO template class for the Entity Bean that implemented our DAO interface. The previous developers opted to create a DAO Factory class as a singleton that was accessed from within the Struts Actions to instantiate the DAO object for our action and methods were called to perform whatever business was necessary on the DAO objects.

In the Struts 1.2 release, JPA wasn't referenced. Is there an advantage as I move to Struts2 and Spring being embedded in the web application to look at JPA in how its used with Spring/Hibernate over this prior methodology of using Hibernate alone? Is there any particular types of scenarios where this behavior really shines versus where I will likely see little improvement in speed and ease of development?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.