Blog Archives

N+1 Problem in Hibernate

Let’s assume that you’re writing code that’d track the price of mobile phones. Now, let’s say you have a collection of objects representing different Mobile phone vendors (MobileVendor), and each vendor has a collection of objects representing the PhoneModels they

Posted in hibernate, J2EE, JPA

Entity Manager in JPA

Lets start with Entity Manager. What does entity manager means??? If i am a naive programmer i could simply interpret something which manages entity & Indeed it means the same. An Entity Manager is been instantiated with the help of

Posted in hibernate, JPA