FRAMEWORK COMPARISION
Hibernate
Ibatis
JPA |
||
Hibernate.cfg.xml |
sqlMapConfig.xml |
Persistance.xml |
HibernateUtil |
IbatisUtil |
JPAUtil |
Student.hbm.xml |
Student.hbm.xml/Student.xml |
N/A (not applicable) |
Student.java |
Student.java |
Student.java |
Configuration |
Reader |
Persistancee |
SessionFactory |
SqlMapClientBuilder |
EntityManagerFactory |
Session |
SqlMapSession/SqlMapClient |
EntityManager |
Session.beginTranscation Commit/rollback |
Sqlmapsession.startTranscation(); Sqlmapsession.commitTranscation(); Sqlmapsession.endTranscation(); |
|
Struts
Spring(MVC) |
|
ActionServlet |
DispactcherServlet |
Struts-config.xml |
Spring-config.xml/servletName-servlet.xml |
Form |
Bean(Command Object) |
Action(classes) |
Controller(classes) |
ActionMapping |
HandlerMapping |
RequestProcessor |
N/A ->pre &post can be done using Interceptor |
Execute(AM,AF,HSR,HSResp) in Action class |
handleRequest() in Controller |
ActionForward return type of execute() |
ModelAndView return type of handleRequest() |
No comments:
Post a Comment