Hibernate version: 2.1.4
Hi,
I´m trying to configure the file hibernate.cfg.xml to other
path. The documentation says "The XML configuration file is placed in the
context classpath (WEB-INF/classes)".
Can I configure this file in other path, out of classes?
I´m trying to do this:
Code:
configuration = (new Configuration()).configure("/META-INF/hibernate.cfg.xml");
this.factory = configuration.buildSessionFactory();
but Doesn´t found the hibernate.cfg.xml.
I cannot put this file together classes folder.
thanks
Obs.: the META-INF folder is separated.