-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Migrate Eclipse RCP app from Toplink Essentials to Hibernate
PostPosted: Sat Jul 07, 2007 8:04 am 
Newbie

Joined: Tue Nov 01, 2005 3:07 pm
Posts: 7
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?


Top
 Profile  
 
 Post subject: Fixed.
PostPosted: Sat Jul 07, 2007 9:06 am 
Newbie

Joined: Tue Nov 01, 2005 3:07 pm
Posts: 7
Ok, my fault. After carefully looking at what I've written I realized that I wrote org.eclipse.hibernate instead of org.hibernate.eclipse. Works now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.