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.
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
Doesn't work on Linux too. Any workaround available?
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.
Not working with Ubuntu 10.10 as well.
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)
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
*** Bug 190740 has been marked as a duplicate of this bug. ***
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?
> 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
thanks, can you attach netbeans message.log? it may contain some exceptions and/or some additional log information.
(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 :-)
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
Created attachment 105207 [details] Fix for bug #190597
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 ***