What is sessionFactory ?
SessionFactory:-
Factory to create hibernate session objects Maintains the datea that is collected from
configuration object(Both cfg file and mapping file data).
Represents JDBC Con pool that is created based on cfg file data .
SessionFactory object is immutable that means
the data of this object cannot be modified onc created.
It is the object of java class that implementes
org.hibernate.SessionFactory.
SessionFactory factory=cfg.buildSessonFactory();
Builds session factory object having inmemory
metadata of both xml files that is
gathered throuth “cfg” object.that is created based on hibernate cfg properties
of inmemory metadata.
No comments:
Post a Comment