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

Key: IDEADEV-22674
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Gregory Shrago
Reporter: Steve Wardell
Votes: 2
Watchers: 3
Operations

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

Spring/Hibernate integration does not recognize mappingDirectoryLocations

Created: 16 Oct 07 19:40   Updated: 06 Dec 07 18:51
Component/s: J2EE.Hibernate
Fix Version/s: Selena 7.0.2

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

Build: 7,348
Fixed in build: 7,507
Severity: Medium


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



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