G
gk
where do we put the hibernate configuration file ?
say, I have a class named 'person' and i have made a corresponding
configuration xml file called
'person.hbm.xml' .
Now question is, where do i put this xml file ?
(1) if the application is WEB APPLICATION
should i keep it in the WEB-INF folder where web.xml resides ?
will it work ?
(2) if the application is standalone application .
should i put the XML file in the same folder where the class file
resides ?
Thanks
say, I have a class named 'person' and i have made a corresponding
configuration xml file called
'person.hbm.xml' .
Now question is, where do i put this xml file ?
(1) if the application is WEB APPLICATION
should i keep it in the WEB-INF folder where web.xml resides ?
will it work ?
(2) if the application is standalone application .
should i put the XML file in the same folder where the class file
resides ?
Thanks