I can't understand the concept of factories design, if you can explain it to me in simple words, i would be grateful.
Factory Method is a creational pattern. This pattern helps to model an interface for creating an object which at creation time can let its subclasses to decide which class to instantiate.
For more details, follow the links below:
Also read about Hibernate 4