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 190597 - Hibernate Mapping Files and POJOs from a Database Wizard
Summary: Hibernate Mapping Files and POJOs from a Database Wizard
Status: RESOLVED DUPLICATE of bug 192027
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 4 votes (vote)
Assignee: Sergey Petrov
URL:
Keywords:
: 190740 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-26 01:53 UTC by cvmarcello
Modified: 2011-03-01 16:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Fix for bug #190597 (323 bytes, text/plain)
2011-01-20 18:00 UTC, davitjan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cvmarcello 2010-09-26 01:53:17 UTC
Hibernate Mapping Files and POJOs from a Database Wizard does not generate the hbm.xml and related .java class files. The hibernate.cfg.xml and hibernate.reveng.xml files are both present and recognized, but both 6.9 and 6.9.1 IDE versions do not generate the hbm.xml and related .java class files. Tried refreshing package folder, all nodes, scanning for external changes, closing and reopening NetBeans to no avail.


Product Version = NetBeans IDE 6.9.1 (Build 201007282301)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_21
Runtime = Java HotSpot(TM) Client VM 17.0-b16
Comment 1 gerwol 2010-10-18 18:05:28 UTC
Doesn't work on Linux too. Any workaround available?
Comment 2 Sergey Petrov 2010-10-18 22:08:24 UTC
try to vote for some issues, if there will be some amount of votes it may help to determine what issues to evaluate or fix from hibernate issues.
Don't know anything about workarounds/fix yet.
Comment 3 indikap 2010-11-19 06:28:01 UTC
Not working with Ubuntu 10.10 as well.
Comment 4 maxfluxnine 2010-12-17 16:29:37 UTC
This is not working for me either.  Any ideas as to when this might be resolved?

Product Version: NetBeans IDE 6.9.1 (Build 201011082200)
Java: 1.6.0_21; Java HotSpot(TM) 64-Bit Server VM 17.0-b17
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 5 ewilson 2010-12-21 17:41:50 UTC
Same behavior on OS X

Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Mac OS X version 10.6.5 running on x86_64
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) 64-Bit Server VM 17.1-b03-307
Comment 6 Sergey Petrov 2010-12-27 17:28:23 UTC
*** Bug 190740 has been marked as a duplicate of this bug. ***
Comment 7 Sergey Petrov 2010-12-27 17:33:08 UTC
tried http://netbeans.org/kb/docs/java/hibernate-java-se.html
on step @Creating Hibernate Mapping Files and POJOs From a Database@ finsihing I have both Actor class and Actor.hbm.xml.

Looks like some important setup factors are missed.(tried on win7 with nb7.0 but there should be no much difference with 6.9 up to now).

Do you use bundled with nb hibernate jars or some newer? Do you have any additional hibernate libraries on classpath or registered in nb? Is it fresh nb installation, is it reproducible with clean startup?
Do you have properly created and configured hibernate.reveng and hibernate.cfg?
Can you try if db connection is available/active?
Comment 8 ewilson 2010-12-27 19:10:31 UTC
> Do you use bundled with nb hibernate jars or some newer? 
Bundled jars, fresh install of netbeans

> Do you have any additional hibernate libraries on classpath or registered in nb? 
No fresh install of Netbeans

> Is it fresh nb installation, 
Yes

> is it reproducible with clean startup?
Yes

> Do you have properly created and configured hibernate.reveng and hibernate.cfg?
Yes

> Can you try if db connection is available/active?
Yes same symptoms
Comment 9 ewilson 2010-12-27 19:10:56 UTC
> Do you use bundled with nb hibernate jars or some newer? 
Bundled jars, fresh install of netbeans

> Do you have any additional hibernate libraries on classpath or registered in nb? 
No fresh install of Netbeans

> Is it fresh nb installation, 
Yes

> is it reproducible with clean startup?
Yes

> Do you have properly created and configured hibernate.reveng and hibernate.cfg?
Yes

> Can you try if db connection is available/active?
Yes same symptoms
Comment 10 Sergey Petrov 2010-12-28 11:10:08 UTC
thanks, can you attach netbeans message.log? it may contain some exceptions and/or some additional log information.
Comment 11 ewilson 2010-12-28 17:19:47 UTC
(In reply to comment #10)
> thanks, can you attach netbeans message.log? it may contain some exceptions
> and/or some additional log information.

I would be glad to if you could point me in the right direction as to it's location on OSX :-)
Comment 12 sleepmore 2011-01-01 15:02:33 UTC
According to the tutorial in (http://netbeans.org/kb/docs/web/hibernate-webapp.html), I also cannot generate the POJO classes.  But when I removed the value (org.hibernate.hql.classic.ClassicQueryTranslatorFactory) from the hibernate.cfg.xml, the NetBeans can then generate all mapping files and POJOs from the database.

Because I'm still new in NetBeans and Hibernate, I'm not sure whether this is a bug or not.

NetBeans version: 6.9.1
Operating System: Windows 7 (x86)
Java version: 1.6.0_22
Comment 13 davitjan 2011-01-20 18:00:08 UTC
Created attachment 105207 [details]
Fix for bug #190597
Comment 14 Sergey Petrov 2011-03-01 16:56:26 UTC
according to latest comments.
seems to be fixed as issue 192027

feel free to reopen if it's some separate issue.

*** This bug has been marked as a duplicate of bug 192027 ***