1

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

1

1 Answer 1

4

Hibernate tools (hbm2java) allows you to do this. Read the 5.4.2. POJO java code exporter section or look at the screenshot below.

POJO java code exporter (<hbm2java>) (Screenshot from Hibernate Tools Reference Guide [pdf])

1

Not the answer you're looking for? Browse other questions tagged or ask your own question.