how to remove the mapping resource property from hibernate.cfg file
Posted
by Mrityunjay
on Stack Overflow
See other posts from Stack Overflow
or by Mrityunjay
Published on 2010-06-05T05:28:51Z
Indexed on
2010/06/05
6:02 UTC
Read the original article
Hit count: 280
hi, i am currently working on one project. In my project there are many entity/POJO files. currently i am using simple hibernate.cfg.xml to add all the mapping files in to the configuration like :-
<mapping resource="xml/ClassRoom.hbm.xml"/>
<mapping resource="xml/Teacher.hbm.xml"/>
<mapping resource="xml/Student.hbm.xml"/>
i am having huge number of mapping files, which makes my hibernate.cfg file looks a bit messy, so is there any way so that i do not need to add the above in to the hibernate.cfg file. rather there can be any other way to achieve the same.. please help
© Stack Overflow or respective owner