This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 193280 - org.hibernate.HibernateException: Hibernate Dialect must be explicitly set for database: DB2
Summary: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set fo...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-12 02:09 UTC by jbsabmello
Modified: 2012-05-25 05:49 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 74388


Attachments
stacktrace (1.74 KB, text/plain)
2010-12-12 02:09 UTC, jbsabmello
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jbsabmello 2010-12-12 02:09:02 UTC
Build: NetBeans IDE 7.0 Beta (Build nbms-and-javadoc-6301-on-101209)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Windows XP

User Comments:
GUEST: When I try to create POJO and HIbernate Mapping files I get this Exception




Stacktrace: 
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set for database: DB2
   at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:62)
   at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)
   at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)
   at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)
   at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2005)
   at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:40)
Comment 1 jbsabmello 2010-12-12 02:09:06 UTC
Created attachment 103973 [details]
stacktrace
Comment 2 Sergey Petrov 2011-02-24 17:32:23 UTC
need to catch this exception and show some kind of a dialog with a hint (or a hint in the wizard itself and block "finish" etc).
it's required to specify hibernate dialect for db2 in hibernate.cfg.xml the only issue here is nb feedback.
Comment 3 Sergey Petrov 2012-05-24 10:46:43 UTC
As hb require dialect to e specified, wizard will check now if hb throw this exception and block finish and show message received from the exzception
http://hg.netbeans.org/web-main/rev/7cf6666ca639
Comment 4 Quality Engineering 2012-05-25 05:49:04 UTC
Integrated into 'main-golden', will be available in build *201205250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/258d62238a6a
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #193280 currnty jsut do not generate and log problem to message log