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 241892

Summary: IDE issue with Hibernate Options after creating Java EE Enterprise Application
Product: javaee Reporter: arashaga
Component: HibernateAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED WONTFIX    
Severity: normal CC: kganfield
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description arashaga 2014-02-14 19:44:58 UTC
When the Enterprise application project is created using Netbeans IDE. Three sub projects are created 
1- ear 
2- Ejb 
3-Web.

Issues:

1- Hibernate options are only available only on the WEB sub project not EJB or EAR sub-projects. Perhaps, hibernate units must be created under EJB sub-project not Web. 

2- Even using the Hibernate wizard to create the Hibernate reverse engineering configuration file under the WEB sub-project, the file is created in the root location, subsequently, the wizard to create the mapping file could not located the newly created reverse engineering configuration file.
Comment 1 arashaga 2014-02-14 20:48:29 UTC
Workaround at this time:

To use Hibernate instead of default EclipseLink for Enterprise Applications:

1- Right Click on the WEB section click New->Hibernate-> Hibernate Confifguration Wizard and create your hibernate-cfg.xml

2- Right click on the WEB Section again and choose New->Hibernate -> Hibernate Reverse Engineering Wizard to create your hibernate-reveng.xml

3- Switch to file view and locate hibernate-reveng.xml and move it to -> Other Sources - src/main/resources - default package 

4- Now when you try Hibernate Mapping Files and POJO from Database Wizard it is able to find the hibernate-reveng.xml and complete the wizard.
Comment 2 Martin Balin 2016-07-07 08:53:37 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