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.
Summary: | When addiding a Postgresql datasource to a hibernate project it is not adding the dialect | ||
---|---|---|---|
Product: | javaee | Reporter: | scitronpousty <scitronpousty> |
Component: | Hibernate | Assignee: | Vadiraj Deshpande <vadirajvd> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 140811 |
Description
scitronpousty
2008-09-21 07:16:33 UTC
This may be a blocker for 140811 but I can not be sure. I tried this with a MySQL and Derby database and it works fine so this seems to be a postgresql specific issue. Might be due to missing PostgreSQL dialect in the list of dialects. This is not a P1. You can always edit the config file and add an entry. But I did that and it still didn't work on the reverse engineering tool. It seems like there is something more going on here. Have you confirmed that Hibernate works if you add it manually? My understanding is that hibernate is another big push for this release and open source LAMP and LAPP are a major item as well. This is not working as advertised right now. Please let me know why this is not a P1. There is a separate issue 140811 to track Rev. Engg. issue with PostgreSQL. That issue is under investigation.This issue deals with missing dialect only. Per bug priority guidelines, if there is a work around it is not a P1. This issue has a work around. Thanks Has someone tested the work around and confirms that it works? Which version of the Postgres driver are you using? AFAIK, this is the supported version (or later): http://wiki.netbeans.org/DatabasesAndDrivers#section-DatabasesAndDrivers-PostgreSQLDriverForThePostgreSQLDatabase My point is - given that is currently broken and we are proposing a work around. Has anyone actually gone through and generated a hibernate.cfg.xml through the wizard, added the missing dialect, and insured that it worked. Before you can say there is a valid workaround you should test to make sure it works. yes, it should have been tested for officially supported databases/drivers. Our QE engineer can confirm that. As John pointed out, it will be useful for us to know if you are using the bundled driver or some other version. I am using the jdbc4 version that came with PostgreSQL 8.3.3 Fixed the typo in PostgreSQL driver classname. http://hg.netbeans.org/main/rev/24b7656cbeb1 I tested with jdbc4, PostgreSQL 8.3.4 and NetBeans IDE Dev (Build 200809220201) and everything works well. Verified. Sorry, I copied build number from another NB version. Verified with Build 200809251401. |