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
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 ...