Latest Posts

Hibernate Criteria Example Tutorial

Welcome to the Hibernate Criteria Example Tutorial. Today we will look into Criteria in Hibernate. Hibernate Criteria Most of the times, we use HQL for querying the database and getting the results. HQL is not….

org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml

If you are looking for a solution for org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml then you have come to right place. Recently I was working on a Hibernate project with latest version 4.3.5.Final and everything….

HQL – Hibernate Query Language – Example Tutorial

HQL or Hibernate Query Language is the object-oriented query language of Hibernate Framework. HQL is very similar to SQL except that we use Objects instead of table names, that makes it more close to object….

Hibernate Tools Eclipse Plugin

If you have worked on hibernate projects, you must be familiar with a lot of properties we need for hibernate mapping and configuration file. Without any proper tool that can guide us in looking for….

Hibernate Many To Many Mapping – Join Tables

Today we will look into Hibernate Many to Many Mapping using XML and annotation configurations. Earlier we looked how to implement One To One and One To Many mapping in Hibernate. Hibernate Many to Many….

Hibernate One To Many Mapping Example Annotation

Today we will look into One To Many Mapping in Hibernate. We will look into Hibernate One To Many Mapping example using Annotation and XML configuration. One To Many Mapping in Hibernate In simple terms,….

Hibernate One to One Mapping Example Annotation

Today we will look into One to One Mapping in Hibernate. We will look into Hibernate One To One Mapping example using Annotation and XML configuration. One to One Mapping in Hibernate Most of the….

Hibernate Tomcat JNDI DataSource Example Tutorial

Welcome to the Hibernate Tomcat JNDI DataSource example tutorial. We have already seen how to use Hibernate ORM tool in standalone java application, today we will learn how to use Hibernate with DataSource in Tomcat….

[Solved] org.hibernate.HibernateException: No CurrentSessionContext configured

Hibernate requires a lot of configurations and sometimes you get weird exception and there is no clue that it’s because of some missing configuration. org.hibernate.HibernateException: No CurrentSessionContext configured I was working on a simple hibernate….

[Solved] org.hibernate.HibernateException: get is not valid without active transaction

Recently I was developing a simple hibernate application with version 4.3.5.Final and everything looked fine to me until I got below exception. org.hibernate.HibernateException: get is not valid without active transaction org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:352) com.sun.proxy.$Proxy26.get(Unknown Source) org.hibernate.HibernateException: get….

close
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages