Project
IntelliJ IDEA
Priority
Major
Type
Bug
Fix versions
No Fix versions
State
Verified
Assignee
Greg Shrago
Subsystem
Hibernate
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Alexander Chernikov
    4 years ago (10 Jan 2008 20:20)
  • Updated by   root
    2 years ago (17 Jan 2010 20:57)
  • Jira: IDEADEV-24199
    (history, comments)
 
IDEA-42481 Hibernate: mapping/resource references are updated as text on refactoring
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Provide hibernate configuration file with a mapping/resource entry:
...
<hibernate-configuration>
	<session-factory name="sf1">
		<mapping resource="name.hbm.xml"/>
		...
	</session-factory>
...
</hibernate-configuration>

The file name.hbm.xml exists and referred correctly.

Provide a package with FQN "name".
Refactor / Rename or Refactor / Move "name" to "nameRenamed" or "cont.name".
Result: reference to file is changed to "nameRenamed.hbm.xml" and "cont.name.hbm.xml" correspondingly.
That's error, file name.hbm.xml was not touched with refactoring. Do not process mapping/resource entries this way.
Comments (1)
 
History
 
Linked Issues (?)
 
Alexander Chernikov
  Alexander Chernikov
17 Nov 2009 19:26
2 years ago
92.20: fix confirmed.
Related Changes
State
FixedVerified
Fixed In build
<lost change>