I want make a generic hibernate API which will create mapping class from hbm.xml and use in generic select method.
Please help me..
Thanks
Hibernate tools (hbm2java) allows you to do this. Read the 5.4.2. POJO java code exporter section or look at the screenshot below.
(Screenshot from Hibernate Tools Reference Guide [pdf])