Problem While Fetching the Entity data and its related Entity data with JPA(Lazy Initialization Exception)

27 Views Asked by At

Method threw 'org.hibernate.LazyInitializationException' exception. Cannot evaluate com.esewa.admin.domain.Departments$HibernateProxy$ekCkdrrd.toString()

While i was fetching the entity its data is coming perfectly fine but the related mapping data could not able to fetch though my mapping in manytoone and its default fetch type is eager and also to ensure more in service level transactional annotation is used but the api is fetching this error. Method threw 'org.hibernate.LazyInitializationException' exception. Cannot evaluate com.esewa.admin.domain.Departments$HibernateProxy$ekCkdrrd.toString()

0

There are 0 best solutions below