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

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

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

Spring + Hibernate: with specific settings of Web facet a reference to a resource in dependent module is resolved to compiler's output

Created: 06 Jun 07 14:30   Updated: 06 Nov 08 23:14
Component/s: J2EE.Hibernate, J2EE.Spring
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: 1. Zip Archive harb01-hn.zip (24 kb)


Build: 7,000


 Description  « Hide
Open the project from the attached harb01-hn.zip. It has the structure:
  • Module mod-hbm with bean class and .hbm.xml mapping for it.
  • Module mod-cfg depends on mod-hbm.
  • Module mod-cfg includes spring configuration with Hibernate factory bean.
  • Spring configuration refers to resources from mod-hbm via mappingResources.
  • Some .hbm.xml is added to mod-cfg just for example.
  • Module mod-cfg has Web facet.

Make sure that the project is compiled, i.e. all xmls are copied to output.
Open project, check Java EE view. Hibernate factory is shown. Resources from mod-hbm are not included - that's another issue.
Now go to mod-cfg settings. Edit Web facet properties. Set "Copy output to" for mod-hbm. Ok.
Check Java EE view. It now has resources from mod-hbm too. Nice, but that's not all.
Select a BeanHbm.hbm.xml and Jump to source. Xml is opened. Check it's path (e.g. in tool tip). The file is from compiler's output!



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