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 - New Hibernate Util wizard creates outdated class with org.hibernate.cfg.AnnotationConfiguration
Summary: New Hibernate Util wizard creates outdated class with org.hibernate.cfg.Annot...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-31 21:03 UTC by alied
Modified: 2016-03-03 09:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (81.55 KB, text/plain)
2015-10-31 21:03 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
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