hi all,
in my spring batch application, i'm using an hibernatealoong with aCode:org.springframework.batch.item.database.HibernatePagingItemReaderto extract data from a database. with the sqlString i'm doing a fech join to eagerly fetch all needed data but when the processor begin it's prosses it throwsCode:org.springframework.batch.item.database.orm.HibernateNativeQueryProvider
although i annotated theCode:[LazyInitializationException] - failed to lazily initialize a collection of role: my.domain.Bean.BeanCollection, no session or session was closed org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: my.domain.Bean.BeanCollection, no session or session was closed
it keep on throwing the exception i don't know how to get ride of it.Code:@Transactional(propagation = Propagation.REQUIRES_NEW, readOnly = true) public BeanDomain process(Bean cim) throws Exception
can suggestions are appreciated
thanks.


Reply With Quote