java - Transaction management with StatelessSession in Hibernate -
i have concern using statelesssession , scrollableresults in spring application hibernate. have number of daos using common session object autowired in them, 1 purpose need cycle through whole table. found out efficient use scrollableresults iterate objects , statelesssession not store results attached in memory. however, need iteration outside dao, because info db used access foreign api. i've crated methods create , close statelesssession outside dao. wonder, how in case should manage transactions? seems no transactional operations needed @ (data readed), on code review i've been told transaction can created automatically , never closed spring hibernate transaction manager. should overrider manually or useless precaution?
Comments
Post a Comment