Difference between session and sessionfactory hibernate?

Difference between session and sessionfactory hibernate? Basically session will be created from the sessionfactory instances. I have listed down the few differences between the session and sessionfactory in hibernate. Sessionfactory: It is one instance per datasource/database. It is thread safe. It is a heavy weight object, because it maintains datasources, mappings, hibernate configuration information’s etc. Sessionfactory will create and manage

1,108 total views, 10 views today

» Read more

7 Performance Tuning Tips in Java

7 Performance Tuning Tips in Java: Before start doing performance tuning/optimizations, first use any profiler to identify the areas for optimizations using profilers   Few Java Profilers: yourkit jProfiler Java Flight Recorder Eclipse Test & Performance Tools Platform Project   1. Use available data structures or algorithms: If you want to convert list to set or vice versa, instead of

243 total views, no views today

» Read more