Tuesday, January 29, 2008

Hibernate Notes

1)When we are just doing readonly transactions, its better to clear the session by calling the session.clear() method. This will remove all references of the loaded objects from session and removes the overhead of dirty checking during session flushing.