hi this is madhuri
Session session=HibernateSessionFactory.currentSession();
Transaction tx=session.beginTransaction();
SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory();
//Opening the session factory.
session = sessionFactory.openSession();
List list=session.find("select employee,dept from com.nanna.Emp as employee,com.nanna.Dept as dept ");
in above query ,2 table are particepete.but i getting a problem which object is created for above query.and how retive from the list
am gettting problem on one to one and one to many how to solve this one
|