yht520100 / ibatis-plugin

Automatically exported from code.google.com/p/ibatis-plugin
0 stars 0 forks source link

Unable to resolve result or parameter maps unless SQL MAP configuration file is in a source directory. #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. The iBatis configuration dialog says to "make sure there is a SQL MAP
configuration file in a source directory.
2. For my web apps I have the SQL MAP configuration file in my WEB-INF
directory.
3. When I edit an SQL MAP I am able to resolve classes and properties with
no problem but not result maps or parameter maps.  It works for me in my
non web applications where I have the SQL MAP configuration file in a
source directory.

What is the expected output? What do you see instead?
I would like to be able to specify the path to one or more SQL MAP
configuration files not in a source directory or even if I don't specify
the path I would like to be able to resolve result maps or paramter maps,
at least those that are defined within the same sql map file.

What version of the product are you using? On what operating system?
Plugin: 0.8.4 IntelliJ: 7.03 OS: Windows XP

Please provide any additional information below.

Original issue reported on code.google.com by rory.far...@gmail.com on 5 Apr 2008 at 5:29

GoogleCodeExporter commented 8 years ago
>>1. The iBatis configuration dialog says to "make sure there is a SQL MAP
configuration file in a source directory.
Now plugin scans source directory to find the sqlmap config xml file, so you 
should put the sqlmap file in 
source directory. 
>>2. For my web apps I have the SQL MAP configuration file in my WEB-INF
directory.
I think you can adjust your spirng configuration file and make the sqlmap 
config file in source directory
>> 3. When I edit an SQL MAP I am able to resolve classes and properties with
no problem but not result maps or parameter maps.  It works for me in my
non web applications where I have the SQL MAP configuration file in a
source directory.
Because iBATIS plugin can not get sqlmap config file, and it is very important 
for the plugin, and the plugin 
will use this file to find all sql map files.  The workflow is just like 
follwing:  code completion for resultMap => 
find sqlmap config file => load all sqlmap files => get all resultMap names => 
code hints
>> What is the expected output? What do you see instead?
>>I would like to be able to specify the path to one or more SQL MAP
>>configuration files not in a source directory or even if I don't specify
>>the path I would like to be able to resolve result maps or paramter maps,
>>at least those that are defined within the same sql map file.
Yes, it is a problem. Now you can map external sqlmap files into IDEA by adding 
content root, then make it as 
source directory.  I will take a look at this problem, and I will try to fix it 
ASAP. 
BTW, sorry for my slow feedback. 

Original comment by libing.c...@gmail.com on 28 Jun 2008 at 2:46