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 171392

Summary: [68cat] HibernateUtil.java gets generated without Hibernate library references
Product: javaee Reporter: tusharvjoshi <tusharvjoshi>
Component: HibernateAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description tusharvjoshi 2009-09-03 11:59:49 UTC
[ BUILD # : 200909011401 ]
[ JDK VERSION : 1.6.* ]

Steps to reproduce the issue:

1) Make sure Hibernate plugin is activated
2) Create a new Java application
3) From File > New > Hibernate > choose HibernateUtils
4) Click finish and HibernateUtil.java gets added to the project
5) Shows error marks as Hibernate Library doesn't get added with
HibernateUtil.java
6) Even if you try to add the Hibernate library from Add Library
option Hibernate Library is not shown in the Libraries list.

Expected Result:

While adding HibernateUtils.java to a Java project which doesn't have
Hibernate library referenced yet, the library shall get added
automatically OR the option shall not create the HibernateUtils.java
file asking to add Hibernate first

with regards
Tushar Joshi, Nagpur

Product Version: NetBeans IDE Dev (Build 200909011401)
Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02-83
System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US
(nb)
Userdir: /Users/tusharjoshi/.netbeans/dev
Comment 1 Martin Janicek 2011-10-21 09:24:16 UTC
Reassigning to Persistence component.
Comment 2 Martin Balin 2016-07-07 08:56:09 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss