Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Gregory Shrago
Subsystem
J2EE.Hibernate
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Steve Wardell
    4 years ago (16 Oct 2007 20:40)
  • Updated by   root
    2 years ago (17 Jan 2010 20:54)
  • Jira: IDEADEV-22674
    (history, comments)
 
IDEA-41650 Spring/Hibernate integration does not recognize mappingDirectoryLocations
2
Issue is visible to: All Users
  The issue is visible to the selected user group only
I have a project that uses Spring and Hibernate and have both facets enabled. The web.xml of the project references Database-config.xml in the list of contextConfigLocation. In the Database-config.xml, I have:

<property name="mappingDirectoryLocations">
<value>classpath*:com/company/biz/dao/hibernate</value>
</property>

In the src directory of the package listed above, I have a fair amount of .hbm.xml files. However, when I go to try to run it in Tomcat and do a Make via IDEA building, I receive errors about not being able to resolve query parameters in some .Java files for queries that are listed in the .hbm.xml files in the directory above. I also see other errors in the source files about being unable to resolve symbols that again are defined in the .hbm.xml files which are configured.

I am thinking that IDEA is not using the configuration to be able to find the hbm.xml files. However, using mappingLocations does seem to resolve correctly.

Issue was resolved
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments