Tag Archives: Hibernate

Hibernate Mapping

Hibernate mappings are one of the key features of  Hibernate. They establish the relationship between two database tables as attributes in your model. That allows you to easily navigate the associations in your model and Criteria queries. You can establish either unidirectional or bidirectional i.e you can either model them as an attribute on only one Continue Reading »

Spring Hibernate With EhCache

Ehcache is an open-source, standards-based cache for boosting performance, simplifying scalability and offloading your database. EhCache is used to improve performance by reducing the load on underlying resources.  It can also be used for RESTful server caching, application persistence, and distributed caching. In simple words, cache means a store of things that will be required Continue Reading »

Hibernate Query Language

  In this tutorial will discuss about Hibernate Query Language. HQL is an object-oriented query language. Hibernate Query Language(HQL) is same as Structured Query language(SQL), except that in HQL we use entity class name instead of table name. HQL provides its own syntax and grammar Ex.  From Employee emp . Where Employee is an entity class Continue Reading »

Spring Data JPA

  Spring Data JPA is not a JPA provider but is a specification. It is a library / framework that adds an extra layer of abstraction on the top of our JPA provider. It simply “hides” the Java Persistence API (and the JPA provider) behind its repository abstraction. JPA is the sun specification for persisting Continue Reading »