Link to home
Start Free TrialLog in
Avatar of Jay Roy
Jay RoyFlag for United States of America

asked on

Spring - hibernate full flow

hi guys
I have been struts developer for last few years and now switching to spring.
In struts we had the following flow
jsp--> action form--> action class--> business delegate--> session facade--> ejb-->dao-->db

I have read few articles on spring and hibernate but i want the full flow from front end to back end while developing project in spring and hibernate.
I came up with this
jsp --> spring config file -->DAO  , is that it? or am i missing something?

if anyone can explain the full flow in spring and hibernate, i will greatly apreciate
thanks

Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

JSP-----> SpringConfigFlie ---------->Controller -----> after that depend upon ur project Architecture
as per ur old (Struts) project  
jsp--> SpringConfigFlie --> Controller class--> business delegate->dao-->HBM(hibernate config Flie throug POJO) -->DB
 
if u need validatior means ! flow will come like this
 
jsp--> SpringConfigFlie --> Validatior calss ---->Controller class-->  and so on .....
Avatar of Jay Roy

ASKER

ok thanks. Is it possible for me to use plain sql and not hibernate query language? or is it mandatory to use the hibernate query language in spring-hibernate aplications.

ya u can use like create sessionFactory
session.createSQLQuery()
but better u can go for HQL query bcz thats is directly mention ur POJO class name
which IDE ur using ?
 
create sessionFactory object
Avatar of Jay Roy

ASKER

i am using eclipse. the thing is i dont want to depend on HQL since its propritery, tomorrow HQL can be replaced by something else, so I want to stick with sql. what is your opinion?

is there a project  (anywhere online) which shows a complete spring - hibernate application ?


thanks.
ASKER CERTIFIED SOLUTION
Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
u need sample code or porject  ??
Avatar of Jay Roy

ASKER

yeah , a sample project (slightly complicated) which uses spring and hibernate will be great. thanks