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

Key: IDEADEV-18389
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Dmitry Avdeev
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

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

Refactor / Move package with mapping files does not update references in configuration file

Created: 27 Jun 07 15:47   Updated: 06 Nov 08 23:13
Component/s: J2EE.Hibernate
Fix Version/s: Undefined

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

Build: 7,038


 Description  « Hide
Provide hibernate config file. Refer to any .hbm.xml and .orm.xml via mapping/@resource. Make sure references are resolved.
Move package(s) containing .hbm.xml and .orm.xml to different package. Bug: references in config file are not updated.

 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 28 Jun 07 16:12
7039: the same in case of configuration in spring xml.

Dmitry Avdeev - 28 Sep 07 18:03
Please provide a code snippet.

Alexander Chernikov - 28 Sep 07 18:14
Nothing especial. Files layout:
1. module-root/src/hibernate.cfg.xml
2. module-root/src/map/hbm/Generated.hbm.xml
3. module-root/src/other
hibernate.cfg.xml:
<?xml version='1.0' encoding='utf-8'?>
...
<hibernate-configuration>
	<session-factory name="session-factory">
		...
		<mapping resource="map/hbm/Generated.hbm.xml"/>
		...
	</session-factory>
</hibernate-configuration>

Move hbm directory (package) into other.