As you can see I have added my termandcondition.hbm.xml file in .cfg.xml file in the last.
All other .hbm working fine.
And for the TermAndCondition.java I have putted a jar file on th server side where all the hbm files putted.
Joined: Mar 05, 2009
What I really want to do that to save an new TermAndCondition.java in to the database.
For that I just made a new instance in my dao class and called the method saveOrUpdate of the session.
Then it is giving error which I posted in my first post.
i.e. My .cfg.xml is not getting the termandcondition.hbm.xml
Now what I did is in my TermAndCondition bean class I made a default constructor.Now it wrking properly.
But this is bit of confusing for me Because need of constructor will be at the time of making new instance for saving.Not at the time
when searching of .hbm.xml in the cfg.xml file.