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 242415 - Move mapping *.xbm.xml file refactoring breaks hibernate configuration
Summary: Move mapping *.xbm.xml file refactoring breaks hibernate configuration
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Hibernate (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-27 13:05 UTC by Maksim Khramov
Modified: 2014-07-31 09:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2014-02-27 13:05:44 UTC
Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-1357-on-20140224)
Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08

Steps to reproduce:
Create project with Hibernate support
using generated XML mappings.
Invoke Move refactoring on some *.hbm.xml file to move it to other location

See configuration file after that:
mapping resource entity replaces slashes with dots for moved resource
was :
>> /model/mappings/ClassName
become
>> model.mappings.newlocation/ClassName

this breaks runtime with 
>> org.hibernate.MappingNotFoundException: resource: model.mappings.newlocation/ClassName.hbm.xml not found
Comment 1 Sergey Petrov 2014-07-30 10:51:17 UTC
http://hg.netbeans.org/web-main/rev/d653fc5380f5
Comment 2 Quality Engineering 2014-07-31 09:00:47 UTC
Integrated into 'main-silver', will be available in build *201407310738* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d653fc5380f5
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: #242415 fix move of hbm.xml