History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-24199
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Gregory Shrago
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Hibernate: mapping/resource references are updated as text on refactoring

Created: 10 Jan 08 19:20   Updated: 10 Jan 08 19:20
Component/s: J2EE.Hibernate
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 8,091


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.