Hi every body ,
I am using hibernate3.3.2 ,Glassfish and eclipse.
my hibernate.cfg.xml file is in my src folder and my mapping files are in src/comm just beside the persistence classes.
i use this code to save person to my database
Code:
SessionFactory sf=new Configuration().configure().buildSessionFactory();
Session s=sf.openSession();
Transaction txOne = s.beginTransaction();
Person p=new Person();
p.setName("Joe");
System.out.println("person created");
s.save(p);
System.out.println("person saved");
txOne.commit();
System.out.println("transaction committed");
s.close();
when i use org.hibernate.* and org.hibernate.cfg.* every thing works fine and person is saved
But when i use net.sf.hibernate and net.sf.hibernate.cfg i get hibernate.cfg.xml not found error
do i need any extra code to be able to use net.sf.hibernate??
Any help is appreciated
Thanks in advance