although i have 3 year of experience in java ,i am completely new to spring and hibernate .I have to use them in my next project .Can anyone please suggest me the best books for Spring and Hibernate
Thanks in Advance
I found "Spring In Action" a really good book to start with. You can also check Pro Spring then move onto Spring's own reference manual. The first two have introduction on Hibernate and how to use it with Spring.
As for Hibernate, "Hibernate in Action" and now "Java Persistence with Hibernate" which is the 2nd edition and of course the Hibernate reference manual.
I second the recommendations of Tamas. 2 month ago or so Manning released the second edition "Spring in Action". I've read the chapters about bean wiring and aop and found them the best introduction in these concepts. "Java Persistence with Hibernate" is very rich in details (and this is good for Hibernate as a topic). Both frameworks have a very good online documentation, which is very usefull to look things up, once you've got a good grasp of the basic concepts.
"Java Persistence with Hibernate" is "Hibernate in Action" second edition. I suggest that you should start studying Spring with "Spring in Action" because it also covers ORM and it has a dedicated part to Hibernate too. After you're familiar with what Spring is all about (IOC, AOP, DAO, ORM, etc) and you feel like you need to dig deeper into Hibernate you could grab one of the previously mentioned books.
Personally I think that the most important thing right now is to understand what ORM is and to learn that Hibernate is just one (one of the good ones if not the best IMHO) framework from many.
You also have to understand the key concepts and why is a good practice to program to interfaces, AOP etc, because Spring is not the only framework that does this. It is doing it really well no doubt about it, what I am saying that it is best to know what it does and after that how it is doing it. Spring in Action covers all these aspects, so go for it.