Jay Roy
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
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
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 ?
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
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.
is there a project (anywhere online) which shows a complete spring - hibernate application ?
thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
u need sample code or porject ??
ASKER
yeah , a sample project (slightly complicated) which uses spring and hibernate will be great. thanks
as per ur old (Struts) project
jsp--> SpringConfigFlie --> Controller class--> business delegate->dao-->HBM(hibern
if u need validatior means ! flow will come like this
jsp--> SpringConfigFlie --> Validatior calss ---->Controller class--> and so on .....