liferay « cfg « JPA Q&A

1. how to configure hibernate-cfg.xml file

Hi all, can anybody know how to configure hibernate-cfg.xml file in liferay. I have written the below statements in this file . com.mysql.jdbc.Driver jdbc:mysql://localhost/ipdb?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false root admin org.hibernate.transaction.JDBCTransactionFactory thread

2. global place for hibernate.cfg.xml?

Hi all! We use hibernate to access our own databases in our own WAR-Portlets. For it we have a hibernate.cfg.xml file located in the WEB-INF/classes folder of every portlet. These xml file is in all our portlets the same. Is it possible to put it at a global place like the tomcat/lib folder? best Troll

3. hibernate and liferay: unable to initialize alternate cfg

Argh... if anyone out there is attempting to use Liferay for Portlets with Hibernate I would like to know how to get around the previously loaded hibernate.cfg.xml embedded in Liferay (I still haven't found it but I'm guessing it's there somewhere). I've tried using the configure method when constructing a session factory to specify an alternate configuration file (renamed: 'stracker.hibernate.cfg.xml') but ...