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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -