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 256300

Summary: New Hibernate Util wizard creates outdated class with org.hibernate.cfg.AnnotationConfiguration
Product: javaee Reporter: alied <alied>
Component: HibernateAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal CC: cagdastunca
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description alied 2015-10-31 21:03:05 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Linux version 4.2.5 running on amd64
Java; VM; Vendor = 1.8.0_66
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.66-b17

Reproducibility: Happens every time

org.hibernate.cfg.AnnotationConfiguration was deprecated in Hibernate 3.6 and removed in Hibernate 5.*
STEPS:
 * Right-click the Source Packages node and select New > Other to open the New File wizard.
 * Select Hibernate from the Categories list and HibernateUtil.java from the File Types list. Click Next.
 * Type HibernateUtil for the class name and sakila.util as the package name. Click Finish.

ACTUAL:
 * The generated class uses org.hibernate.cfg.AnnotationConfiguration
 * If using Hibernate 3.6+ this class is deprecated or removed.

EXPECTED:
  * Use org.hibernate.cfg.Configuration instead
Comment 1 alied 2015-10-31 21:03:10 UTC
Created attachment 157087 [details]
IDE log