Hibernate is a library that maps database tables to Java objects. Is performance problems arise it’s very easy to add database caching for application using Hibernate (just few options in config file). Hibernate is shipped with EHCache, default cache implementation. It works well and is easy to setup.
Sometimes you have to use another caching library that has no direct support for Hibernate. Here the Hibernate API comes into play. I’ll show you how to plug Websphere’s DistributedMap into Hibernate.

