- This topic has 6 replies, 3 voices, and was last updated 17 years, 8 months ago by Haris Peco.
-
AuthorPosts
-
tvanMemberHi,
I am using Rdb oracle database. How can I call my RdbDialect class otherwize I always received this error: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set for database: Rdb
I attempted to put rdbDialect.jar in the lib but the “search” button of Hibernate configuration window can not delect it.
By the way, how can we create a custom template to generate java code for the design pattern Dao(domain.pojoClass, dao.interfacexxxDao and dao.impl.xxxDaoImpl)
Thank you for your helps.
Best regards
Tvan
Riyad KallaMemberTvan,
Hibernate is complaining about you not setting a dialect in the hibernate.cfg.xml file. You can do this using the MyEclipse configuration editor if you added hibernate capabilities to the file, or you can do it manually, check this link for reference:
http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html
tvanMemberHi,
As I explained in the firts posted, the question is that MyEclipse configuration editor does not allow to define a custom Dialect. Only the most common “standard”Dialects defined Hibernate jar that MyEclipse configuration editor can detect. But when you have your custom Dialect and wherever you store it in the classpath or a jar inside the lib, MyEclipse configuration editor can not find it with it’s search button. I added manually but MyEclipse data explorer does not accept it and generate the mentionned error when I attempt to do Hibernate Reverse Engineering.
Thanks
Tvan
Riyad KallaMemberTvan,
My appologies, I was running on auto-pilot there.Could you put together a small project that contains Hibernate capabilities and your custom dialect and send it to us for testing?
support@genuitec.com ATTN Riyad, with a link to this thread for refernece.
Haris PecoMemberTvan,
You can edit property in source tab of editor for cfg.xml
Example dialect property is :
<property name=”dialect”>
org.hibernate.dialect.Oracle9Dialect
</property>Your dialect have to extends org.hibernate.Dialect.
It looks that Search button have some bug.I can’t got all dialects in project as well.
Sorry for the inconvenience caused
Regards,
tvanMemberHi,
I had tried it by editing the file as you proposed and this error occured. I hope things will be better in the next version.
Thanks
Tvan
Haris PecoMemberTvan,
This issue is unrelated to the MyEclipse version. Is your dialect class on your project’s build path?
Regards
-
AuthorPosts