O'Reilly logo

Spring Persistence with Hibernate by Ahmad Seddighi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

In this chapter, you learned the fundamental concepts behind using Hibernate and Spring. We started with a simple Student class. Next, we used an XML mapping document to define mapping of the class properties to the table columns. Then, we called Hibernate to persist a Student object.

You must configure Hibernate before you can use it. You can configure Hibernate either programmatically or declaratively. However, for flexibility and maintenance, the declarative approach is highly recommended.

Our discussion continued with other issues in object persistence, including object querying, caching, and transaction management.

Finally, we looked at the Spring IoC container. Spring provides IoC functionality in its core API, meaning that all other ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required