Hi folks,
Normally when doing queries or loads and not any inserts or updates, I dont issue any session.beginTransaction(), and things seem to work just fine.. Suddenly it seems that session.iterate() does NOT work without being within a transaction, at least not on ibm websphere 5.. on websphere 4 it doesnt seem to matter.. my data source is enlisted with JTA.
Does hibernate require EVERY unit of work to be within
Transaction t = session.beginTransaction();
....
t.commit();
or is it only needed for updates and inserts..
regards...
|