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 254063

Summary: HibernateUtil.java file-type wizard calls deprecated class
Product: javaee Reporter: nigel
Component: HibernateAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:

Description nigel 2015-08-02 06:47:30 UTC
Create util file Test Case the expected result is that a Util class is created with getSessionFactory() method. This class is duly created but imports a deprecated class, namely org.hibernate.cfg.AnnotationConfiguration

In a Java Web, Web Application which has been configured for Hibernate support, right-click on project node and select New->Other->Hibernate->HibernateUtil.java