[jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-29 Thread Roberto Rabe (JIRA)
[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66528 ] Roberto Rabe commented on IBATISNET-74: --- I updated the SqlMapConfig.xsd to allow mixed content for the element: Otherwise, stuff needs t

[jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-29 Thread Roberto Rabe (JIRA)
[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66526 ] Roberto Rabe commented on IBATISNET-74: --- FYI, I think there is an issue with WhiteSpace and SqlMap.config schema validation since the different loads use different m

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Gilles Bayon
On 5/28/05, Ted Husted <[EMAIL PROTECTED]> wrote: I think something like providers.config makes an excellent case forembedding resources. If we could bundle this into an assembly, then we wouldn't need it floating about, like the odd man out.   It's the case with SVN version, :-) [Fixed IBATISNET-

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Ted Husted
On 5/27/05, Roberto R <[EMAIL PROTECTED]> wrote: > That said, on Java apps, it's pretty normal to place SqlMaps into a JAR for > deployment. Heck, if you are using Velocity with your Java apps, you can even embed the pages in a JAR. :) -Ted.

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Ted Husted
On 5/27/05, Bob Hanson <[EMAIL PROTECTED]> wrote: > To allow for this I have been editing iBatis source so that I can > difine absolute path locations for my sqlmap.config and sql maps. > Because I wanted to minimize how much iBatis code I was changing, I've > relunctantly left providers.config in

RE: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Jeremy Gray
From: Roberto R [mailto:[EMAIL PROTECTED] Sent: Friday, May 27, 2005 3:29 PM To: ibatis-dev@incubator.apache.org Subject: Re: [jira] Commented: (IBATISNET-74) Improvement for configuration --snip- > I think the +1 for resources and embedded was taken

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Roberto R
Hi Jeremy, On 5/27/05, Jeremy Gray <[EMAIL PROTECTED]> wrote: Having worked on a variety of projects over the years, I can certainly understand that there are applications out there where embedded resources are more attractive for a number of reasons, but I am somewhat surprised at the apparen

RE: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Ron Grabowski
essage- > From: Roberto Rabe (JIRA) [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 25, 2005 10:46 PM > To: ibatis-dev@incubator.apache.org > Subject: [jira] Commented: (IBATISNET-74) Improvement for > configuration > > --snip-- > > Otherwise, +1 for resource and embe

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Gilles Bayon
Embedded resource are useful when you want to deliver a windows application for exemple and don't want the end user play with the config file. We are open to all possiblities so that each one can use as it seems best for him.   -Gilles

RE: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Jeremy Gray
s-dev@incubator.apache.org Subject: [jira] Commented: (IBATISNET-74) Improvement for configuration --snip-- Otherwise, +1 for resource and embedded! -1 One of a laundry list of attractions to ibatis is the removal of query logic from our code without necessarily resorting to stored procedures. Use of emb

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Ted Husted
Probably not this weekend or the next. There's the TLP infrastructure work to do, and I'm getting ready to leave on a fishing trip to the Great White North next week. The week after that is my quarterly pilmigrage to Oklahoma City, so don't wait on me. :) -T On 5/27/05, Roberto R <[EMAIL PROTECTE

NPetshop (was Re: [jira] Commented: (IBATISNET-74) Improvement for configuration)

2005-05-27 Thread Roberto R
Ted, I just remembered...I think Gilles may be planning on updating NPetshop (Castle.MVC).  Maybe he already made the relative path with properties key update that you wrote about. Roberto On 5/27/05, Roberto R <[EMAIL PROTECTED]> wrote: Sounds good Ted.  Are you going to go through the .NET docs

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Bob Hanson
On 5/27/05, Ted Husted <[EMAIL PROTECTED]> wrote: > (Team iBATIS) examples, that we *always* assume people are going to be > deploying the same configuration to multiple project types. > Accordingly, I would suggest that we *never * use a relative path in > our project examples, but always use a pr

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Roberto R
Sounds good Ted.  Are you going to go through the .NET docs this weekend?  I was planning to update the text describing configuration after this was resolved (and update the "cookbook" section).  But I can make other plans.  :-) Roberto On 5/27/05, Ted Husted <[EMAIL PROTECTED]> wrote: On 5/26/0

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-27 Thread Ted Husted
On 5/26/05, Roberto Rabe (JIRA) wrote: > The relative path in seems to be confusing enough with the app base > directory > being different by project. Now, a relative string path for the > SqlMap.config could end up > being hard-coded into the Configure() method call by alot of people and c

[jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Roberto Rabe (JIRA)
[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66414 ] Roberto Rabe commented on IBATISNET-74: --- So, just to be clear, the proposal for SqlMapper configuration is: Relative Paths -- SqlMapper.Configure("resour

[jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Gilles Bayon (JIRA)
[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66397 ] Gilles Bayon commented on IBATISNET-74: --- I introduced naming convention resource:// (which is not required )SqlMapper.Configure("resource://sqlMap.Config") or SqlM

[jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Ron Grabowski (JIRA)
[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66396 ] Ron Grabowski commented on IBATISNET-74: I realize that URI schemas(?) aren't limited to just the familiar http://, ftp://, etc. but I don't think we should be so

[jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Gilles Bayon (JIRA)
[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66392 ] Gilles Bayon commented on IBATISNET-74: --- Ron suggestion are nices, just some note, if I want to use an absolutePath, I'am obliged to instanciate and use a FileInfo,

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Ted Husted
On 5/26/05, Gilles Bayon <[EMAIL PROTECTED]> wrote: > In an Asp.NET project the application root is the wwwroot and for a > console/windows the application root is > the bin/debug or bin/release > if your project is organized as > AspNetProject > > /bin > /Resources/Query >

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Gilles Bayon
The current version is running all tests for me and for fixed the JIRA-71, I have added 6 GetFileInfo Tests and 6 GetConfigAsXmlDocument tests that all runned. The issue of Ted is another problem (an evoltuion issue :-)   On 5/26/05, Ron Grabowski <[EMAIL PROTECTED]> wrote: Yes, the current revisio

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Gilles Bayon
In the January version, if the "bin","debug" was in application path, I remove them, which is bad. I have change this between the jan release and now (don't remember when)   The problem is with Asp.Net and Windows application folder and not with iBATIS   In an Asp.NET project the application root

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Ron Grabowski
Yes, the current revision in SVN has been broke since Tuesday afternoon(?): http://issues.apache.org/jira/browse/IBATISNET-71#action_66212 A quick fix is to download a reivison from Monday: svn co -r 171372 http://svn.apache.org/repos/asf/incubator/ibatis/trunk/cs/mapper/ IBatisNet-svn --- Ted

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Ted Husted
Speaking of the configuration files, I just updated to the last nightly build from the January release, and my configs aren't loading anymore. :( > IBatisNet.Common.Exceptions.ConfigurationException : Unable to load file via resource "/Resources/Query/properties.xml" as resource. Cause

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Bob Hanson
Is there relunctance to use file urls? Because SqlMapper.Configure(Uri externalLocation) can handle the absolute path option. I read in some Blog that MS is going to encourage the use of the Uri class in the next .NET framework. On 5/26/05, Ron Grabowski (JIRA) wrote: > [ > http://issues

[jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Rick (JIRA)
[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66361 ] Rick commented on IBATISNET-74: --- Cool. A small note... can the parameter name for the SqlMapper.Configure(Stream embeddedResource) overload be called just SqlMapper.Config

[jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Ron Grabowski (JIRA)
[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66354 ] Ron Grabowski commented on IBATISNET-74: I like Rick's idea but this doesn't seem very .Net-ish to me: assembly://System.Data, Version=1.0.5000.0, Culture=neutral,

Re: [jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Bob Hanson
If the attribute name remains "url" then it should accept urls. Otherwise change "url" to something like "path". On 5/26/05, Roberto Rabe (JIRA) wrote: > [ > http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66319 ] > > Roberto Rabe commented on IBATISNET-74: > --

[jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-26 Thread Rick (JIRA)
[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66349 ] Rick commented on IBATISNET-74: --- The Spring.NET framework has already defined (and implemented) a simple resource abstraction, which you can read about here... http://www.s

[jira] Commented: (IBATISNET-74) Improvement for configuration

2005-05-25 Thread Roberto Rabe (JIRA)
[ http://issues.apache.org/jira/browse/IBATISNET-74?page=comments#action_66319 ] Roberto Rabe commented on IBATISNET-74: --- This looks ok, but I worry about url. As Bob mentioned ( http://issues.apache.org/jira/browse/IBATISNET-71#action_66269 )