Monday, December 12, 2011

TransientObjectException - Hibernate 2

Transient Object Exception occurs due to two reasons:

1.  The below article will explain it. 

               Transient State

2. It occurs due to passing null as primary key. Check the class you are passing into the table is not null due to any logic. Therefore check the logic of the class it is throwing the exception.

The conversion of the transient state to persistent state in the method getHibernateTemplate();

No comments:

Post a Comment