Hi,
My RCP application uses toplink essentials. I am trying to switch to hibernate and have some configuration issues. The app is structured as 3 plugins:
- myapp
- myapp.orm
- oracle.jdbc
- oracle.toplink.essentials
oracle.jdbc is an import (as a plug-in) of ojdbc14.jar (the JDBC driver)
oracle.toplink.essentials is an import of the toplink jars as a plugin
The steps I took were:
1) I installed Hibernate tools 3.2.0beta9
2) I removed the dependency on oracle.toplink.essentials, replacing it with a dependency of org.hibernate.eclipse (in plugin myapp.orm).
3) I set "Eclipse-RegisterBuddy: org.eclipse.hibernate" in the manifest for myapp.orm
4) I modified the file src/META-INF/persistence.xml (in myapp.orm) to include the properties:
hibernate.hbm2ddl.auto=validate
hibernate.dialect=org.hibernate.dialect.OracleDialect
hibernate.connection.driver_class=oracle.jdbc.OracleDriver
hibernate.connection.url=jdbc:oracle:thin:@myserverip:myserverport:mysid
hibernate.connection.username=myusername
hibernate.connection.password=mypassword
When I launch the application, I get:
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
I assume this is because hibernate can't find persistence.xml? Does it not define a "registered" buddy class-loading policy?