hello
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.
Si how it is working properly?