<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-369</id>
	<title>Nabble - iBATIS - User - Cs</title>
	<updated>2009-12-10T15:38:54Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/iBATIS---User---Cs-f369.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/iBATIS---User---Cs-f369.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26736464</id>
	<title>Re: Dynamic Username and password</title>
	<published>2009-12-10T15:38:54Z</published>
	<updated>2009-12-10T15:38:54Z</updated>
	<author>
		<name>Juan Pablo Araya</name>
	</author>
	<content type="html">The best solution starts by implementing your own Mapper class, in
&lt;br&gt;which you can dynamically configure the datasource based on App.config
&lt;br&gt;or Web.config, depending on the kind of application you're building.
&lt;br&gt;&lt;br&gt;In the example above I'm configuring the connection through the
&lt;br&gt;InitMapper() method:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected static void InitMapper()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DomSqlMapBuilder builder = new DomSqlMapBuilder();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XmlDocument sqlMapConfig =
&lt;br&gt;Resources.GetConfigAsXmlDocument(&amp;quot;SqlMap.config&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ((sqlMapConfig[&amp;quot;sqlMapConfig&amp;quot;][&amp;quot;database&amp;quot;][&amp;quot;dataSource&amp;quot;]).Attributes[1]).Value
&lt;br&gt;= &amp;quot;Data Source=(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = &amp;quot; +
&lt;br&gt;ConfigurationManager.AppSettings[&amp;quot;DataHost&amp;quot;] + &amp;quot;)(PORT = &amp;quot; +
&lt;br&gt;ConfigurationManager.AppSettings[&amp;quot;DataPort&amp;quot;] + &amp;quot;))(CONNECT_DATA =
&lt;br&gt;(SERVER = DEDICATED)(SID = &amp;quot; +
&lt;br&gt;ConfigurationManager.AppSettings[&amp;quot;DataOSID&amp;quot;] + &amp;quot;)));User ID=&amp;quot; +
&lt;br&gt;ConfigurationManager.AppSettings[&amp;quot;DataUser&amp;quot;] + &amp;quot;;Password=&amp;quot; +
&lt;br&gt;ConfigurationManager.AppSettings[&amp;quot;DataPass&amp;quot;];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _Mapper = builder.Configure(sqlMapConfig) as SqlMapper;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;My SqlMap.config just has this information related to the datasource
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;database&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;provider name=&amp;quot;oracleClient1.0&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;dataSource name=&amp;quot;MyPoolName&amp;quot; connectionString=&amp;quot;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/database&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;In this case you get and XmlDocument from SqlMap.config and then
&lt;br&gt;insert the information from my web.config (this sample is for an
&lt;br&gt;oracle connection):
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;add key=&amp;quot;DataHost&amp;quot; value=&amp;quot;theHost&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;add key=&amp;quot;DataPort&amp;quot; value=&amp;quot;thePort&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;add key=&amp;quot;DataOSID&amp;quot; value=&amp;quot;theOSID&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;add key=&amp;quot;DataUser&amp;quot; value=&amp;quot;myDBuser&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;add key=&amp;quot;DataPass&amp;quot; value=&amp;quot;myDBPass&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;Finally, the mapper is build with this information:
&lt;br&gt;&lt;br&gt;_Mapper = builder.Configure(sqlMapConfig) as SqlMapper;
&lt;br&gt;&lt;br&gt;The last thing is use this Mapper instead of the classic
&lt;br&gt;Mapper.Instance() &amp;nbsp;when you need to persist:
&lt;br&gt;&lt;br&gt;return yourNamespace.Mapper.Instance().Queryfor{........}
&lt;br&gt;&lt;br&gt;In case you use embedded xml, the only difference from the code is in
&lt;br&gt;how you get the XmlDocument (InitMapper() method)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XmlDocument sqlMapConfig =
&lt;br&gt;Resources.GetEmbeddedResourceAsXmlDocument(&amp;quot;sqlMap.config,
&lt;br&gt;your.assemblie&amp;quot;);
&lt;br&gt;&lt;br&gt;&lt;br&gt;Greetings!
&lt;br&gt;&lt;br&gt;-----------code------------------
&lt;br&gt;&lt;br&gt;using System.Xml;
&lt;br&gt;using IBatisNet.Common.Utilities;
&lt;br&gt;using IBatisNet.DataMapper;
&lt;br&gt;using IBatisNet.DataMapper.Configuration;
&lt;br&gt;using System.Diagnostics;
&lt;br&gt;using System.Configuration;
&lt;br&gt;&lt;br&gt;namespace yourNamespace
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; public class Mapper
&lt;br&gt;&amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; private static volatile SqlMapper _Mapper = null;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected static void Configure(object obj)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _Mapper = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected static void InitMapper()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DomSqlMapBuilder builder = new DomSqlMapBuilder();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; XmlDocument sqlMapConfig =
&lt;br&gt;Resources.GetConfigAsXmlDocument(&amp;quot;SqlMap.config&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ((sqlMapConfig[&amp;quot;sqlMapConfig&amp;quot;][&amp;quot;database&amp;quot;][&amp;quot;dataSource&amp;quot;]).Attributes[1]).Value
&lt;br&gt;= &amp;quot;Data Source=(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = &amp;quot; +
&lt;br&gt;ConfigurationManager.AppSettings[&amp;quot;DataHost&amp;quot;] + &amp;quot;)(PORT = &amp;quot; +
&lt;br&gt;ConfigurationManager.AppSettings[&amp;quot;DataPort&amp;quot;] + &amp;quot;))(CONNECT_DATA =
&lt;br&gt;(SERVER = DEDICATED)(SID = &amp;quot; +
&lt;br&gt;ConfigurationManager.AppSettings[&amp;quot;DataOSID&amp;quot;] + &amp;quot;)));User ID=&amp;quot; +
&lt;br&gt;ConfigurationManager.AppSettings[&amp;quot;DataUser&amp;quot;] + &amp;quot;;Password=&amp;quot; +
&lt;br&gt;ConfigurationManager.AppSettings[&amp;quot;DataPass&amp;quot;];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _Mapper = builder.Configure(sqlMapConfig) as SqlMapper;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static SqlMapper Instance()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (_Mapper == null)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lock (typeof(SqlMapper))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (_Mapper == null)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InitMapper();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return _Mapper;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static SqlMapper Get()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return Instance();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static void Clear()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lock (typeof(SqlMapper))
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _Mapper = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;2009/12/10 sanjeev40084 &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736464&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sanjeev40084@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Right now my config looks something like this:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Development.config
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;DatabaseConnection
&lt;br&gt;&amp;gt;        name=&amp;quot;EmpDb&amp;quot;
&lt;br&gt;&amp;gt;        sqlmapconfigpath=&amp;quot;Emp.SqlMap.config&amp;quot;
&lt;br&gt;&amp;gt;        assembly=&amp;quot;Emp.Domain&amp;quot;
&lt;br&gt;&amp;gt;  &amp;gt;
&lt;br&gt;&amp;gt;        &amp;lt;DatasourceProperty name=&amp;quot;provider&amp;quot; value=&amp;quot;sqlServer2.0&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;        &amp;lt;DatasourceProperty name=&amp;quot;name&amp;quot; value=&amp;quot;EmpDb&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt;        &amp;lt;DatasourceProperty name=&amp;quot;server&amp;quot; value=&amp;quot;TRIO&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;        &amp;lt;DatasourceProperty name=&amp;quot;initialCatalog&amp;quot; value=&amp;quot;Company&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;        &amp;lt;DatasourceProperty name=&amp;quot;username&amp;quot; value=&amp;quot;Prince&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;        &amp;lt;DatasourceProperty name=&amp;quot;password&amp;quot; value=&amp;quot;persia123&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;        &amp;lt;DatasourceProperty name=&amp;quot;timeout&amp;quot; value=&amp;quot;600&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;        &amp;lt;DatasourceProperty name=&amp;quot;caching&amp;quot; value=&amp;quot;True&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;  &amp;lt;/DatabaseConnection&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This works fine but only the problem is the username and password is hard
&lt;br&gt;&amp;gt; coded. Anyone who is able to
&lt;br&gt;&amp;gt; use the dll, can view username and password using Reflector. So, i was
&lt;br&gt;&amp;gt; wondering if there was a way where my application (which uses dll which
&lt;br&gt;&amp;gt; contains this connection string), can pass username and password dynamically
&lt;br&gt;&amp;gt; and retrieve the information?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Dynamic-Username-and-password-tp26733588p26733588.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Dynamic-Username-and-password-tp26733588p26733588.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736464&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736464&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Juan Pablo Araya
&lt;br&gt;787 76 034
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736464&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26736464&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Dynamic-Username-and-password-tp26736464p26736464.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26634195</id>
	<title>Re: Does iBatis support generic TypeHandlerCallbacks spanning  multiple assemblies?</title>
	<published>2009-12-03T14:14:52Z</published>
	<updated>2009-12-03T14:14:52Z</updated>
	<author>
		<name>FMT</name>
	</author>
	<content type="html">Roger, thank you! That did the trick. &amp;nbsp;All i had to do was double the square brackets as in:
&lt;br&gt;&lt;br&gt;&amp;lt;alias&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;typeAlias alias=&amp;quot;MySpecialTypeHandler&amp;quot;
&lt;br&gt;type=&amp;quot;myFirstNamespace.MyGenericTypeHandlerCallback`1[[mysecondNamespace.MySpecialType,
&lt;br&gt;mySecondAssembly]], myFirstAssembly&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;/alias&amp;gt;
&lt;br&gt;&lt;br&gt;I did not have to use the fully qualified name, but it probably wouldn't hurt :-)
&lt;br&gt;&lt;br&gt;Frankly i'm amazed that iBatis can do this. &amp;nbsp;Kudos to the iBatis team on this!
&lt;br&gt;&lt;br&gt;~</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Does-iBatis-support-generic-TypeHandlerCallbacks-spanning-multiple-assemblies--tp26633442p26634195.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26633641</id>
	<title>Re: Does iBatis support generic TypeHandlerCallbacks spanning  multiple assemblies?</title>
	<published>2009-12-03T13:36:52Z</published>
	<updated>2009-12-03T13:36:52Z</updated>
	<author>
		<name>Roger Champagne</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;I ran into a similar problem. I believe you have to use the fully qualified assembly name, with version number and all.&lt;br&gt;&lt;br&gt;See &lt;a href=&quot;http://stackoverflow.com/questions/52989/using-generic-classes-with-objectdatasource&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://stackoverflow.com/questions/52989/using-generic-classes-with-objectdatasource&lt;/a&gt; for a short code snippet that will allow to get this information for your specific case. This link deals with ObjectDataSources in ASP pages, but I used the same thing to get the relevant information for usage in iBatis.&lt;br&gt;
&lt;br&gt;Hope this helps!&lt;br&gt;&lt;br&gt;Sincerely,&lt;br&gt;&lt;br&gt;Roger&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Dec 3, 2009 at 4:25 PM, FMT &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633641&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;florence.tissot@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;br&gt;
I&amp;#39;m looking at doing something like this:&lt;br&gt;
&lt;br&gt;
public class MyGenericTypeHandlerCallback&amp;lt;T&amp;gt; : ITypeHandlerCallback&lt;br&gt;
&lt;br&gt;
then in my sqlmap i want to do:&lt;br&gt;
&lt;br&gt;
&amp;lt;alias&amp;gt;&lt;br&gt;
    &amp;lt;typeAlias alias=&amp;quot;MySpecialTypeHandler&amp;quot;&lt;br&gt;
type=&amp;quot;myFirstNamespace.MyGenericTypeHandlerCallback`1[mysecondNamespace.MySpecialType],&lt;br&gt;
myFirstAssembly&amp;quot;/&amp;gt;&lt;br&gt;
  &amp;lt;/alias&amp;gt;&lt;br&gt;
&lt;br&gt;
the key here is that MyGenericTypeHandlerCallback is defined and compiled in&lt;br&gt;
myFirstAssembly, while MySpecialType is defined and compiled in a different&lt;br&gt;
assembly, mySecondAssembly.&lt;br&gt;
&lt;br&gt;
So when i try the alias above, iBatis complains (rightfully so) that it&lt;br&gt;
can&amp;#39;t find mysecondNamespace.MySpecialType.  It&amp;#39;s right to complain since i&lt;br&gt;
did not tell it anything about mySecondAssembly.&lt;br&gt;
&lt;br&gt;
so i tried:&lt;br&gt;
&lt;br&gt;
&amp;lt;alias&amp;gt;&lt;br&gt;
    &amp;lt;typeAlias alias=&amp;quot;MySpecialTypeHandler&amp;quot;&lt;br&gt;
type=&amp;quot;myFirstNamespace.MyGenericTypeHandlerCallback`1[mysecondNamespace.MySpecialType,&lt;br&gt;
mySecondAssembly], myFirstAssembly&amp;quot;/&amp;gt;&lt;br&gt;
  &amp;lt;/alias&amp;gt;&lt;br&gt;
&lt;br&gt;
but it doesn&amp;#39;t like this either.  Any creative idea as to how to make this&lt;br&gt;
work?  For a variety of reasons, i would rather not define the generic&lt;br&gt;
MyGenericTypeHandlerCallback type in the same assembly as MySpecialType.&lt;br&gt;
&lt;br&gt;
Any idea is welcome,&lt;br&gt;
&lt;br&gt;
thanks.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/Does-iBatis-support-generic-TypeHandlerCallbacks-spanning-multiple-assemblies--tp26633442p26633442.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Does-iBatis-support-generic-TypeHandlerCallbacks-spanning-multiple-assemblies--tp26633442p26633442.html&lt;/a&gt;&lt;br&gt;

Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633641&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26633641&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Does-iBatis-support-generic-TypeHandlerCallbacks-spanning-multiple-assemblies--tp26633442p26633641.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26633442</id>
	<title>Does iBatis support generic TypeHandlerCallbacks spanning multiple assemblies?</title>
	<published>2009-12-03T13:25:23Z</published>
	<updated>2009-12-03T13:25:23Z</updated>
	<author>
		<name>FMT</name>
	</author>
	<content type="html">I'm looking at doing something like this:
&lt;br&gt;&lt;br&gt;public class MyGenericTypeHandlerCallback&amp;lt;T&amp;gt; : ITypeHandlerCallback
&lt;br&gt;&lt;br&gt;then in my sqlmap i want to do:
&lt;br&gt;&lt;br&gt;&amp;lt;alias&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;typeAlias alias=&amp;quot;MySpecialTypeHandler&amp;quot; type=&amp;quot;myFirstNamespace.MyGenericTypeHandlerCallback`1[mysecondNamespace.MySpecialType], myFirstAssembly&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;lt;/alias&amp;gt;
&lt;br&gt;&lt;br&gt;the key here is that MyGenericTypeHandlerCallback is defined and compiled in myFirstAssembly, while MySpecialType is defined and compiled in a different assembly, mySecondAssembly.
&lt;br&gt;&lt;br&gt;So when i try the alias above, iBatis complains (rightfully so) that it can't find mysecondNamespace.MySpecialType. &amp;nbsp;It's right to complain since i did not tell it anything about mySecondAssembly.
&lt;br&gt;&lt;br&gt;so i tried:
&lt;br&gt;&lt;br&gt;&amp;lt;alias&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;typeAlias alias=&amp;quot;MySpecialTypeHandler&amp;quot; type=&amp;quot;myFirstNamespace.MyGenericTypeHandlerCallback`1[mysecondNamespace.MySpecialType, mySecondAssembly], myFirstAssembly&amp;quot;/&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;lt;/alias&amp;gt;
&lt;br&gt;&lt;br&gt;but it doesn't like this either. &amp;nbsp;Any creative idea as to how to make this work? &amp;nbsp;For a variety of reasons, i would rather not define the generic MyGenericTypeHandlerCallback type in the same assembly as MySpecialType.
&lt;br&gt;&lt;br&gt;Any idea is welcome,
&lt;br&gt;&lt;br&gt;thanks.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Does-iBatis-support-generic-TypeHandlerCallbacks-spanning-multiple-assemblies--tp26633442p26633442.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26632998</id>
	<title>Re: Options to implement nested transactions with iBatis.NET</title>
	<published>2009-12-03T12:51:14Z</published>
	<updated>2009-12-03T12:51:14Z</updated>
	<author>
		<name>Roger Champagne</name>
	</author>
	<content type="html">Michael,&lt;br&gt;&lt;br&gt;Thanks for the swift reply.&lt;br&gt;&lt;br&gt;After reading some more, I realized that perhaps &amp;quot;nested transactions&amp;quot; is not what I&amp;#39;m looking for. It would be more a case of multiple simultaneous transactions in the same thread in my case.&lt;br&gt;
&lt;br&gt;Looking at the last two test methods in &lt;a href=&quot;http://code.google.com/p/ibatisnetinside/source/browse/trunk/Ibatis.Inside.Tests/Engine/DefaultEngine/SessionFixture.cs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/ibatisnetinside/source/browse/trunk/Ibatis.Inside.Tests/Engine/DefaultEngine/SessionFixture.cs&lt;/a&gt;, I conclude that this is possible with iBatis.Net v3 alone. Am I wrong? Would that test actually pass on the current v3 code line?&lt;br&gt;
&lt;br&gt;Ref. the v3 code line: I would like to contribute, but don&amp;#39;t feel comfortable enough to contribute code (I never looked at any iBatis source code). I remember reading you had documentation issues for v3. Could I help with that? I ask here because I haven&amp;#39;t yet figured out how to reply to an existing message directly through the mailing list :(&lt;br&gt;
&lt;br&gt;Thanks for your help! Hope I can give back soon.&lt;br&gt;&lt;br&gt;Sincerely,&lt;br&gt;&lt;br&gt;Roger&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Dec 3, 2009 at 2:51 PM, Michael McCurrey &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26632998&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mmccurrey@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;I personally use the Castle Windsor facility for my nested transactiosn and am working on a version that works for the IBatis v3 code line.&lt;div&gt;
&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Dec 3, 2009 at 8:32 AM, Roger Champagne &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26632998&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rchampag@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi,&lt;br&gt;&lt;br&gt;I just joined this mailing list this week, this is my first post.&lt;br&gt;&lt;br&gt;I must start by congratulating the whole iBatis.NET team for a great product. I used the java version in the past and was pleasantly surprised to find the .NET version when the need came about this summer.&lt;br&gt;


&lt;br&gt;I am also a novice in database related questions, so please excuse any naive or wrong assumptions/questions.&lt;br&gt;&lt;br&gt;I have a need for nested transactions. After browsing through the archives of this mailing list, I concluded that there are two recurring options, both involving using something other than iBatis at the service layer: 1) use the .NET System.Transactions API; 2) use the Castle Windsor container withe the iBatis facility. As pointed out in another post, the latter doesn&amp;#39;t seem actively supported for a little while. Someone else replied to this comment by pointing out that they were still using it and that the last version was indeed very usable.&lt;br&gt;


&lt;br&gt;As I am not familiar with either Castle or the System.Transactions API, I&amp;#39;m basically looking for advice as to which of the two solutions (or perhaps yet another solution) I should be looking into.&lt;br&gt;&lt;br&gt;Thanks for any advice you might have on this issue.&lt;br&gt;


&lt;br&gt;Sincerely,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;Roger Champagne&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;-- &lt;br&gt;Michael J. McCurrey&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;


&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Options-to-implement-nested-transactions-with-iBatis.NET-tp26627897p26632998.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26632062</id>
	<title>Re: Options to implement nested transactions with iBatis.NET</title>
	<published>2009-12-03T11:51:39Z</published>
	<updated>2009-12-03T11:51:39Z</updated>
	<author>
		<name>Michael McCurrey-3</name>
	</author>
	<content type="html">I personally use the Castle Windsor facility for my nested transactiosn and am working on a version that works for the IBatis v3 code line.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Dec 3, 2009 at 8:32 AM, Roger Champagne &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26632062&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rchampag@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi,&lt;br&gt;&lt;br&gt;I just joined this mailing list this week, this is my first post.&lt;br&gt;&lt;br&gt;I must start by congratulating the whole iBatis.NET team for a great product. I used the java version in the past and was pleasantly surprised to find the .NET version when the need came about this summer.&lt;br&gt;

&lt;br&gt;I am also a novice in database related questions, so please excuse any naive or wrong assumptions/questions.&lt;br&gt;&lt;br&gt;I have a need for nested transactions. After browsing through the archives of this mailing list, I concluded that there are two recurring options, both involving using something other than iBatis at the service layer: 1) use the .NET System.Transactions API; 2) use the Castle Windsor container withe the iBatis facility. As pointed out in another post, the latter doesn&amp;#39;t seem actively supported for a little while. Someone else replied to this comment by pointing out that they were still using it and that the last version was indeed very usable.&lt;br&gt;

&lt;br&gt;As I am not familiar with either Castle or the System.Transactions API, I&amp;#39;m basically looking for advice as to which of the two solutions (or perhaps yet another solution) I should be looking into.&lt;br&gt;&lt;br&gt;Thanks for any advice you might have on this issue.&lt;br&gt;

&lt;br&gt;Sincerely,&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;Roger Champagne&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Michael J. McCurrey&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Options-to-implement-nested-transactions-with-iBatis.NET-tp26627897p26632062.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26627897</id>
	<title>Options to implement nested transactions with iBatis.NET</title>
	<published>2009-12-03T07:32:57Z</published>
	<updated>2009-12-03T07:32:57Z</updated>
	<author>
		<name>Roger Champagne</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;I just joined this mailing list this week, this is my first post.&lt;br&gt;&lt;br&gt;I must start by congratulating the whole iBatis.NET team for a great product. I used the java version in the past and was pleasantly surprised to find the .NET version when the need came about this summer.&lt;br&gt;
&lt;br&gt;I am also a novice in database related questions, so please excuse any naive or wrong assumptions/questions.&lt;br&gt;&lt;br&gt;I have a need for nested transactions. After browsing through the archives of this mailing list, I concluded that there are two recurring options, both involving using something other than iBatis at the service layer: 1) use the .NET System.Transactions API; 2) use the Castle Windsor container withe the iBatis facility. As pointed out in another post, the latter doesn&amp;#39;t seem actively supported for a little while. Someone else replied to this comment by pointing out that they were still using it and that the last version was indeed very usable.&lt;br&gt;
&lt;br&gt;As I am not familiar with either Castle or the System.Transactions API, I&amp;#39;m basically looking for advice as to which of the two solutions (or perhaps yet another solution) I should be looking into.&lt;br&gt;&lt;br&gt;Thanks for any advice you might have on this issue.&lt;br&gt;
&lt;br&gt;Sincerely,&lt;br&gt;&lt;br&gt;Roger Champagne&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Options-to-implement-nested-transactions-with-iBatis.NET-tp26627897p26627897.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26620910</id>
	<title>Re: Finding sprocs referenced in mapper files (ibatis.NET)</title>
	<published>2009-12-02T20:44:29Z</published>
	<updated>2009-12-02T20:44:29Z</updated>
	<author>
		<name>Ron Grabowski</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:times new roman,new york,times,serif;font-size:12pt&quot;&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;The attached file contains some code I wrote to parse .xml mapper files. It extracts embedded resources:&lt;br&gt;&lt;br&gt;Assembly assembly = Assembly.Load(&quot;...&quot;);&lt;br&gt;string[] resourceNames = assembly.GetManifestResourceNames();&lt;br&gt;List&amp;lt;SqlMapInfo&amp;gt; items = new List&amp;lt;SqlMapInfo&amp;gt;();&lt;br&gt;foreach (string resourceName in resourceNames)&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (resourceName.EndsWith(&quot;xml&quot;))&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var searcher = new SqlMapSearcher(assembly, resourceName);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; items.AddRange(searcher.Extract());&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;}&lt;br&gt;&lt;br&gt;and stores information about them:&lt;br&gt;&lt;br&gt;class SqlMapInfo&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public string Id { get; set; }&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public string Statement { get; set; }&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public string Filename { get; set; }&lt;br&gt;
}&lt;br&gt;&lt;br&gt;I must have really been liking LINQ when I wrote my inspection code:&lt;br&gt;&lt;br&gt;&lt;span&gt;// &lt;a target=&quot;_blank&quot; href=&quot;http://stackoverflow.com/questions/442425/nested-group-by-in-linq&quot; rel=&quot;nofollow&quot;&gt;http://stackoverflow.com/questions/442425/nested-group-by-in-linq&lt;/a&gt;&lt;/span&gt;&lt;br&gt;var statementGroups =&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from item in items&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where item.Statement == &quot;insert&quot; || item.Statement == &quot;update&quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; group item by item.Statement&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into byStatements&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select new&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Statement = byStatements.Key,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ids = from item in byStatements&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group item by item.Id into
 byIds&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where byIds.Count() &amp;gt; 1&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select new&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Id = byIds.Key,&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filenames = from item in byIds select item.Filename&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;br&gt;&lt;br&gt;The output:&lt;br&gt;&lt;br&gt;foreach (var statementGroup in statementGroups)&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;
 Console.WriteLine(statementGroup.Statement);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var id in statementGroup.Ids)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;\t{0} {1}&quot;, id.Id, id.Filenames.Count());&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach (var filename in id.Filenames)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string[] parts = filename.Split('.');&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(&quot;\t\t{0}&quot;, parts[parts.Length -2] + &quot;.xml&quot;);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;}&lt;br&gt;&lt;br&gt;told me that some of my &amp;lt;insert id=&quot;...&quot;&amp;gt; statements had ids of SaveNew instead of the more common Insert:&lt;br&gt;&lt;br&gt;insert&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Insert: 43&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InsertWithIdentity:
 10&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SaveNew: 15&lt;br&gt;&lt;br&gt;update&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delete: 2&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Save: 14&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update: 44&lt;br&gt;&lt;br&gt;Is that what you were looking for? You could change the LINQ query to filer just for &amp;lt;procedure&amp;gt; nodes and focus on how those were being used.&lt;br&gt;&lt;br&gt;&lt;div style=&quot;font-family: times new roman,new york,times,serif; font-size: 12pt;&quot;&gt;&lt;font face=&quot;Tahoma&quot; size=&quot;2&quot;&gt;&lt;hr size=&quot;1&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;From:&lt;/span&gt;&lt;/b&gt; Ryan Brown &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620910&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ryankbrown@...&lt;/a&gt;&amp;gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;To:&lt;/span&gt;&lt;/b&gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620910&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs@...&lt;/a&gt;&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Sent:&lt;/span&gt;&lt;/b&gt; Tue, December 1, 2009 5:21:32 PM&lt;br&gt;&lt;b&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Subject:&lt;/span&gt;&lt;/b&gt; Finding sprocs referenced in mapper files (ibatis.NET)&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;meta http-equiv=&quot;x-dns-prefetch-control&quot; content=&quot;off&quot;&gt;&lt;br&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;p style=&quot;margin: 0in 0in 0pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: 10pt;&quot;&gt;Does anybody know of a way to get a list of all the stored procedures used in a given codebase? We have a ton that are no longer used and I would like to get a list of those that are used to help with cleaning this up and verifying deployments.&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;margin: 0in 0in 0pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0in 0in 0pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: 10pt;&quot;&gt;Any help would be greatly appreciated&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0in 0in 0pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Arial; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0in 0in 0pt;&quot; class=&quot;MsoNormal&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: gray; font-size: 10pt;&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;Ryan Brown&lt;/font&gt;&lt;/span&gt;&lt;span style=&quot;color: gray;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;br clear=&quot;all&quot;&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
-- &lt;br&gt;-rb&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;-rb&lt;br&gt;
&lt;meta http-equiv=&quot;x-dns-prefetch-control&quot; content=&quot;on&quot;&gt;&lt;/div&gt;&lt;/div&gt;
&lt;!-- cg5.c1.mail.mud.yahoo.com compressed/chunked Wed Dec  2 20:18:42 PST 2009 --&gt;
&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt; &lt;br /&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620910&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26620910&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;SqlMapSearcher.zip&lt;/strong&gt; (2K) &lt;a href=&quot;http://old.nabble.com/attachment/26620910/0/SqlMapSearcher.zip&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Finding-sprocs-referenced-in-mapper-files-%28ibatis.NET%29-tp26600093p26620910.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26600093</id>
	<title>Finding sprocs referenced in mapper files (ibatis.NET)</title>
	<published>2009-12-01T14:21:32Z</published>
	<updated>2009-12-01T14:21:32Z</updated>
	<author>
		<name>Ryan Brown</name>
	</author>
	<content type="html">&lt;br&gt;
&lt;div class=&quot;gmail_quote&quot;&gt;
&lt;p style=&quot;MARGIN: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;Does anybody know of a way to get a list of all the stored procedures used in a given codebase? We have a ton that are no longer used and I would like to get a list of those that are used to help with cleaning this up and verifying deployments.&lt;/span&gt;&lt;/p&gt;

&lt;p style=&quot;MARGIN: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;MARGIN: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt;Any help would be greatly appreciated&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;MARGIN: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;FONT-FAMILY: Arial; FONT-SIZE: 10pt&quot;&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;MARGIN: 0in 0in 0pt&quot; class=&quot;MsoNormal&quot;&gt;&lt;strong&gt;&lt;span style=&quot;COLOR: gray; FONT-SIZE: 10pt&quot;&gt;&lt;font face=&quot;Times New Roman&quot;&gt;Ryan Brown&lt;/font&gt;&lt;/span&gt;&lt;span style=&quot;COLOR: gray&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;br clear=&quot;all&quot;&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
-- &lt;br&gt;-rb&lt;br&gt;&lt;/font&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;-rb&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Finding-sprocs-referenced-in-mapper-files-%28ibatis.NET%29-tp26600093p26600093.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26396021</id>
	<title>Re: asp.net mvc x library x ibatis</title>
	<published>2009-11-17T11:28:15Z</published>
	<updated>2009-11-17T11:28:15Z</updated>
	<author>
		<name>Juliana Machado</name>
	</author>
	<content type="html">Michael
&lt;br&gt;&lt;br&gt;I managed to run this persistence project using ibatis. I put the configs and xmls files within the application and reference the ibatis dlls in the persistence project.
&lt;br&gt;&lt;br&gt;It's working, very good!! :)
&lt;br&gt;&lt;br&gt;And I did not need to set in Application_Start the path where the sqlmap.config is, because ibatis search the configs files in the root of the application, in the same place where the web.config is
&lt;br&gt;&lt;br&gt;But now ...... I need to put a wcf service between the 2 projects. The mvc application calls the service and the service calls the persistence project. The problem is that when I run the application, the service needs sqlmap.config! The error is:
&lt;br&gt;&lt;br&gt;Unable to load file via resource &amp;quot;SqlMap.config&amp;quot; the resource. Cause: Could not find file 'C: \ .......... \ WCF \ WcfService \ SqlMap.config'.
&lt;br&gt;&lt;br&gt;And when I put sqlmap.config (providers.config, xmls) within the service, gives the following error:
&lt;br&gt;&lt;br&gt;- The error occurred while loading sqlmap.
&lt;br&gt;- Initialize ResultMap
&lt;br&gt;- The error occurred in &amp;lt;sqlMap resource=&amp;quot;Config/Maps/xxx.xml&amp;quot; xmlns=&amp;quot;&lt;a href=&quot;http://ibatis.apache.org/dataMapper&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ibatis.apache.org/dataMapper&lt;/a&gt;&amp;quot; /&amp;gt;.
&lt;br&gt;- Check the xxxmNamespace.xxxResult.
&lt;br&gt;&lt;br&gt;I'm lost as to what I have to do: (</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26396021.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26395316</id>
	<title>Re: .net Apache</title>
	<published>2009-11-17T10:46:09Z</published>
	<updated>2009-11-17T10:46:09Z</updated>
	<author>
		<name>Michael McCurrey-3</name>
	</author>
	<content type="html">To be honest, I haven&amp;#39;t used the Spring.NET configuration, I&amp;#39;m using the Castle project (roughly the same thing).  Somebody else on the forum might have used it or you can also post to the Spring group&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Tue, Nov 17, 2009 at 8:56 AM, puow &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26395316&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dc@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;b&gt;
Hi,

I&amp;#39;m using Spring.NET and am happy that I&amp;#39;ve got this working fine.  I&amp;#39;m now trying to get iBatis to work.  On the whole I think I&amp;#39;ve managed something that looks right in principal but I&amp;#39;ve hit a stumbling block with the following exception:&lt;/b&gt;

&lt;pre&gt;[NullReferenceException: Object reference not set to an instance of an object.]
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureSqlMap() +1003
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Initialize() +5535
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) +384

[ConfigurationException: 
- The error occurred while loading SqlMap.
- The error occurred in .]
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) +483
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, Boolean useConfigFileWatcher) +46
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Configure(String resource) +125

[ObjectDefinitionStoreException: Factory method &amp;#39;IBatisNet.DataMapper.ISqlMapper Configure(System.String)&amp;#39; threw an Exception.]
   Spring.Objects.Factory.Support.SimpleInstantiationStrategy.Instantiate(RootObjectDefinition definition, String name, IObjectFactory factory, MethodInfo factoryMethod, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\Support\SimpleInstantiationStrategy.cs:216
   Spring.Objects.Factory.Support.ConstructorResolver.InstantiateUsingFactoryMethod(String name, RootObjectDefinition definition, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\Support\ConstructorResolver.cs:339
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateUsingFactoryMethod(String name, RootObjectDefinition definition, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\Support\AbstractAutowireCapableObjectFactory.cs:1062
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.CreateObjectInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\Support\AbstractAutowireCapableObjectFactory.cs:944
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\Support\AbstractAutowireCapableObjectFactory.cs:862

[ObjectCreationException: Error creating object with name &amp;#39;sqlMapper&amp;#39; defined in &amp;#39;file [C:\dotNet\SpringMVCExample\ExampleApplication\Config\Controllers.xml] line 12&amp;#39; : Initialization of object failed : Factory method &amp;#39;IBatisNet.DataMapper.ISqlMapper Configure(System.String)&amp;#39; threw an Exception.]

....

&lt;/pre&gt;
&lt;b&gt;I have a User.xml sqlMap:&lt;/b&gt;
&lt;pre&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt;
&amp;lt;sqlMap&amp;gt;
    &amp;lt;typeAlias alias=&amp;quot;User&amp;quot; assembly=&amp;quot;ExampleApplication&amp;quot; type=&amp;quot;ExampleApplication.Models.Entity.User&amp;quot; /&amp;gt;

    &amp;lt;resultMap id=&amp;quot;SelectAllResult&amp;quot; class=&amp;quot;User&amp;quot;&amp;gt;
        &amp;lt;result property=&amp;quot;Id&amp;quot;         column=&amp;quot;id&amp;quot; /&amp;gt;
        &amp;lt;result property=&amp;quot;Name&amp;quot;       column=&amp;quot;name&amp;quot; /&amp;gt;
        &amp;lt;result property=&amp;quot;CreatedBy&amp;quot;  column=&amp;quot;createdBy&amp;quot; /&amp;gt;
        &amp;lt;result property=&amp;quot;ModfiiedBy&amp;quot; column=&amp;quot;modifiedBy&amp;quot; /&amp;gt;
        &amp;lt;result property=&amp;quot;CreatedOn&amp;quot;  column=&amp;quot;createdOn&amp;quot; /&amp;gt;
        &amp;lt;result property=&amp;quot;ModifiedOn&amp;quot; column=&amp;quot;modifiedOn&amp;quot; /&amp;gt;
    &amp;lt;/resultMap&amp;gt;

    &amp;lt;select id=&amp;quot;SelectAll&amp;quot; resultMap=&amp;quot;SelectAllResult&amp;quot;&amp;gt;
        select id,
               name,
               createdBy,
               modifiedBy,
               createdOn,
               modifiedOn
          from USERS
    &amp;lt;/select&amp;gt;
&amp;lt;/sqlMap&amp;gt;
&lt;/pre&gt;
&lt;b&gt;As well as the UserDao and iBatisDao object:&lt;/b&gt;
&lt;pre&gt;    public class IbatisDao
    {
        private ISqlMapper sqlMap;

        public ISqlMapper SqlMap
        {
            get { return sqlMap; }
            set { sqlMap = value; }
        }
               
    }

    public class UserDao : IbatisDao, IUserDao 
    {
        public List&amp;lt;User&amp;gt; selectAll()
        {
            return (List&amp;lt;User&amp;gt;)SqlMap.QueryForList(&amp;quot;SelectAll&amp;quot;,null);
        }
    }

&lt;/pre&gt;
&lt;b&gt;Now I&amp;#39;m trying to get Spring to create the ISqlMapper object and this is where I&amp;#39;m hitting the exception: This is the Controllers.xml file mentioned in the error trace.&lt;/b&gt;
&lt;pre&gt;    &amp;lt;object id=&amp;quot;builder&amp;quot;
                type=&amp;quot;IBatisNet.DataMapper.Configuration.DomSqlMapBuilder, IBatisNet.DataMapper&amp;quot;
                singleton=&amp;quot;true&amp;quot;/&amp;gt;
                
    &amp;lt;object id=&amp;quot;sqlMapper&amp;quot;
            type=&amp;quot;IBatisNet.DataMapper.ISqlMapper, IBatisNet.DataMapper&amp;quot;
            factory-method=&amp;quot;Configure&amp;quot;
            factory-object=&amp;quot;builder&amp;quot;
            singleton=&amp;quot;true&amp;quot;&amp;gt;
        &amp;lt;constructor-arg value=&amp;quot;Config/sqlMap.config.xml&amp;quot;/&amp;gt;        
    &amp;lt;/object&amp;gt;

&lt;/pre&gt;

&lt;b&gt;
I want the sqlMap.config file in the Config directory hence the call to Configure instead of Instance(): If I place the sqlMap.config file in the root of the project and use the Instance() method I get exactly the same error.  If I remove the sqlMapper object from the container everything works well as expected without the error.
&lt;br&gt;
N.B.
If you don&amp;#39;t know spring then I&amp;#39;m basically trying to create an IBatisNet.DataMapper.ISqlMapper object by creating a builder object and using it to call Configure passing in the config file location Config/sqlMap.config.xml.
&lt;br&gt;
For completeness here is said file which does get parsed as if I mess about with it I can produce errors like file not found etc.
&lt;/b&gt;

&lt;pre&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;
&amp;lt;sqlMapConfig
xmlns=&amp;quot;&lt;a href=&quot;http://ibatis.apache.org/dataMapper&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://ibatis.apache.org/dataMapper&lt;/a&gt;&amp;quot;
xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot; &amp;gt;

    &amp;lt;settings&amp;gt;
        &amp;lt;setting useStatementNamespaces=&amp;quot;false&amp;quot;/&amp;gt;
        &amp;lt;setting cacheModelsEnabled=&amp;quot;false&amp;quot;/&amp;gt;
    &amp;lt;/settings&amp;gt;


    &amp;lt;providers resource=&amp;quot;Config/providers.config.xml&amp;quot;/&amp;gt;
    
    &amp;lt;database&amp;gt;
        &amp;lt;provider name=&amp;quot;sqlServer1.1&amp;quot;/&amp;gt;                        
        &amp;lt;dataSource name=&amp;quot;Scratch&amp;quot;
          connectionString=&amp;quot;Data Source=XXXX;Initial Catalog=Scratch;User ID=XXXX;Password=XXXX;database=XXXX&amp;quot;/&amp;gt;
    &amp;lt;/database&amp;gt;

    &amp;lt;sqlMaps&amp;gt;
        &amp;lt;sqlMap resource=&amp;quot;Models/Dao/ibatis/User.xml&amp;quot;/&amp;gt;
    &amp;lt;/sqlMaps&amp;gt;

&amp;lt;/sqlMapConfig&amp;gt;
&lt;/pre&gt;

&lt;b&gt;
Let me know if there&amp;#39;s something relevant I&amp;#39;ve failed to post.  I presume that there is a null reference somewhere but I don&amp;#39;t know how to find out what is missing.  any pointers would be greatfully received.&lt;/b&gt;
&lt;br&gt;&lt;hr width=&quot;300&quot; align=&quot;left&quot;&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/.net-Apache-tp26392377p26392377.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;.net Apache&lt;/a&gt;&lt;br&gt;
Sent from the &lt;a href=&quot;http://old.nabble.com/iBATIS---User---Cs-f369.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;iBATIS - User - Cs mailing list archive&lt;/a&gt; at Nabble.com.&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Michael J. McCurrey&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/.net-Apache-tp26392377p26395316.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26392377</id>
	<title>.net Apache</title>
	<published>2009-11-17T07:56:51Z</published>
	<updated>2009-11-17T07:56:51Z</updated>
	<author>
		<name>puow</name>
	</author>
	<content type="html">&lt;b&gt;
Hi,

I'm using Spring.NET and am happy that I've got this working fine.  I'm now trying to get iBatis to work.  On the whole I think I've managed something that looks right in principal but I've hit a stumbling block with the following exception:&lt;/b&gt;

&lt;pre&gt;
[NullReferenceException: Object reference not set to an instance of an object.]
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureSqlMap() +1003
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Initialize() +5535
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) +384

[ConfigurationException: 
- The error occurred while loading SqlMap.
- The error occurred in &lt;sqlMap resource=&quot;Models/Dao/ibatis/User.xml&quot; xmlns=&quot;http://ibatis.apache.org/dataMapper&quot; /&gt;.]
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao) +483
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument document, Boolean useConfigFileWatcher) +46
   IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Configure(String resource) +125

[ObjectDefinitionStoreException: Factory method 'IBatisNet.DataMapper.ISqlMapper Configure(System.String)' threw an Exception.]
   Spring.Objects.Factory.Support.SimpleInstantiationStrategy.Instantiate(RootObjectDefinition definition, String name, IObjectFactory factory, MethodInfo factoryMethod, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\Support\SimpleInstantiationStrategy.cs:216
   Spring.Objects.Factory.Support.ConstructorResolver.InstantiateUsingFactoryMethod(String name, RootObjectDefinition definition, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\Support\ConstructorResolver.cs:339
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateUsingFactoryMethod(String name, RootObjectDefinition definition, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\Support\AbstractAutowireCapableObjectFactory.cs:1062
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.CreateObjectInstance(String objectName, RootObjectDefinition objectDefinition, Object[] arguments) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\Support\AbstractAutowireCapableObjectFactory.cs:944
   Spring.Objects.Factory.Support.AbstractAutowireCapableObjectFactory.InstantiateObject(String name, RootObjectDefinition definition, Object[] arguments, Boolean allowEagerCaching, Boolean suppressConfigure) in l:\projects\spring-net\trunk\src\Spring\Spring.Core\Objects\Factory\Support\AbstractAutowireCapableObjectFactory.cs:862

[ObjectCreationException: Error creating object with name 'sqlMapper' defined in 'file [C:\dotNet\SpringMVCExample\ExampleApplication\Config\Controllers.xml] line 12' : Initialization of object failed : Factory method 'IBatisNet.DataMapper.ISqlMapper Configure(System.String)' threw an Exception.]

....

&lt;/pre&gt;
&lt;b&gt;I have a User.xml sqlMap:&lt;/b&gt;
&lt;pre&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&amp;gt;
&amp;lt;sqlMap&amp;gt;
    &amp;lt;typeAlias alias=&quot;User&quot; assembly=&quot;ExampleApplication&quot; type=&quot;ExampleApplication.Models.Entity.User&quot; /&amp;gt;

    &amp;lt;resultMap id=&quot;SelectAllResult&quot; class=&quot;User&quot;&amp;gt;
        &amp;lt;result property=&quot;Id&quot;         column=&quot;id&quot; /&amp;gt;
        &amp;lt;result property=&quot;Name&quot;       column=&quot;name&quot; /&amp;gt;
        &amp;lt;result property=&quot;CreatedBy&quot;  column=&quot;createdBy&quot; /&amp;gt;
        &amp;lt;result property=&quot;ModfiiedBy&quot; column=&quot;modifiedBy&quot; /&amp;gt;
        &amp;lt;result property=&quot;CreatedOn&quot;  column=&quot;createdOn&quot; /&amp;gt;
        &amp;lt;result property=&quot;ModifiedOn&quot; column=&quot;modifiedOn&quot; /&amp;gt;
    &amp;lt;/resultMap&amp;gt;

    &amp;lt;select id=&quot;SelectAll&quot; resultMap=&quot;SelectAllResult&quot;&amp;gt;
        select id,
               name,
               createdBy,
               modifiedBy,
               createdOn,
               modifiedOn
          from USERS
    &amp;lt;/select&amp;gt;
&amp;lt;/sqlMap&amp;gt;
&lt;/pre&gt;
&lt;b&gt;As well as the UserDao and iBatisDao object:&lt;/b&gt;
&lt;pre&gt;
    public class IbatisDao
    {
        private ISqlMapper sqlMap;

        public ISqlMapper SqlMap
        {
            get { return sqlMap; }
            set { sqlMap = value; }
        }
               
    }

    public class UserDao : IbatisDao, IUserDao 
    {
        public List&amp;lt;User&amp;gt; selectAll()
        {
            return (List&amp;lt;User&amp;gt;)SqlMap.QueryForList(&quot;SelectAll&quot;,null);
        }
    }

&lt;/pre&gt;
&lt;b&gt;Now I'm trying to get Spring to create the ISqlMapper object and this is where I'm hitting the exception: This is the Controllers.xml file mentioned in the error trace.&lt;/b&gt;
&lt;pre&gt;
    &amp;lt;object id=&quot;builder&quot;
                type=&quot;IBatisNet.DataMapper.Configuration.DomSqlMapBuilder, IBatisNet.DataMapper&quot;
                singleton=&quot;true&quot;/&amp;gt;
                
    &amp;lt;object id=&quot;sqlMapper&quot;
            type=&quot;IBatisNet.DataMapper.ISqlMapper, IBatisNet.DataMapper&quot;
            factory-method=&quot;Configure&quot;
            factory-object=&quot;builder&quot;
            singleton=&quot;true&quot;&amp;gt;
        &amp;lt;constructor-arg value=&quot;Config/sqlMap.config.xml&quot;/&amp;gt;        
    &amp;lt;/object&amp;gt;

&lt;/pre&gt;

&lt;b&gt;
I want the sqlMap.config file in the Config directory hence the call to Configure instead of Instance(): If I place the sqlMap.config file in the root of the project and use the Instance() method I get exactly the same error.  If I remove the sqlMapper object from the container everything works well as expected without the error.
&lt;br /&gt;
N.B.
If you don't know spring then I'm basically trying to create an IBatisNet.DataMapper.ISqlMapper object by creating a builder object and using it to call Configure passing in the config file location Config/sqlMap.config.xml.
&lt;br /&gt;
For completeness here is said file which does get parsed as if I mess about with it I can produce errors like file not found etc.
&lt;/b&gt;

&lt;pre&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;
&amp;lt;sqlMapConfig
xmlns=&quot;http://ibatis.apache.org/dataMapper&quot;
xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; &amp;gt;

    &amp;lt;settings&amp;gt;
        &amp;lt;setting useStatementNamespaces=&quot;false&quot;/&amp;gt;
        &amp;lt;setting cacheModelsEnabled=&quot;false&quot;/&amp;gt;
    &amp;lt;/settings&amp;gt;


    &amp;lt;providers resource=&quot;Config/providers.config.xml&quot;/&amp;gt;
    
    &amp;lt;database&amp;gt;
        &amp;lt;provider name=&quot;sqlServer1.1&quot;/&amp;gt;                        
        &amp;lt;dataSource name=&quot;Scratch&quot;
          connectionString=&quot;Data Source=XXXX;Initial Catalog=Scratch;User ID=XXXX;Password=XXXX;database=XXXX&quot;/&amp;gt;
    &amp;lt;/database&amp;gt;

    &amp;lt;sqlMaps&amp;gt;
        &amp;lt;sqlMap resource=&quot;Models/Dao/ibatis/User.xml&quot;/&amp;gt;
    &amp;lt;/sqlMaps&amp;gt;

&amp;lt;/sqlMapConfig&amp;gt;
&lt;/pre&gt;

&lt;b&gt;
Let me know if there's something relevant I've failed to post.  I presume that there is a null reference somewhere but I don't know how to find out what is missing.  any pointers would be greatfully received.&lt;/b&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/.net-Apache-tp26392377p26392377.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26392211</id>
	<title>Re: asp.net mvc x library x ibatis</title>
	<published>2009-11-17T07:47:42Z</published>
	<updated>2009-11-17T07:47:42Z</updated>
	<author>
		<name>Michael Schall</name>
	</author>
	<content type="html">We configure ibatis in the Application_Start method of the website and
&lt;br&gt;have the configuration files reside in the root of the website.
&lt;br&gt;&lt;br&gt;Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim applicationBase As String =
&lt;br&gt;System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim log4netPath As String = Path.Combine(applicationBase, &amp;quot;Web.log4net.config&amp;quot;)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dim sqlConfigPath As String = Path.Combine(applicationBase,
&lt;br&gt;&amp;quot;Web.SqlMap.config&amp;quot;)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If File.Exists(log4netPath) Then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Configure log4net
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Throw New System.InvalidOperationException(&amp;quot;Unable to find logging
&lt;br&gt;configuration file at &amp;quot; &amp; log4netPath)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If File.Exists(sqlConfigPath) Then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'Configure ibatis
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Throw New System.InvalidOperationException(&amp;quot;Unable to find sql map
&lt;br&gt;configuration file at &amp;quot; &amp; sqlConfigPath)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; End If
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&lt;br&gt;End Sub
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Tue, Nov 17, 2009 at 8:15 AM, Juliana Machado
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392211&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;juliana.machado.85@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Michael,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Files: sqlmap.config, Providers.config (xxx.xml, yyy.xml) are all within the
&lt;br&gt;&amp;gt; persistence project, in the root of this project.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; and the error that appears is: Unable to load file via resource
&lt;br&gt;&amp;gt; &amp;quot;SqlMap.config&amp;quot; as resource. Cause : Could not find file
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26390593.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26390593.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392211&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392211&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392211&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26392211&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26392211.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26390593</id>
	<title>Re: asp.net mvc x library x ibatis</title>
	<published>2009-11-17T06:15:23Z</published>
	<updated>2009-11-17T06:15:23Z</updated>
	<author>
		<name>Juliana Machado</name>
	</author>
	<content type="html">Michael,
&lt;br&gt;&lt;br&gt;Files: sqlmap.config, Providers.config (xxx.xml, yyy.xml) are all within the persistence project, in the root of this project.
&lt;br&gt;&lt;br&gt;and the error that appears is: Unable to load file via resource &amp;quot;SqlMap.config&amp;quot; as resource. Cause : Could not find file </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26390593.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26389749</id>
	<title>Re: asp.net mvc x library x ibatis</title>
	<published>2009-11-17T05:16:14Z</published>
	<updated>2009-11-17T05:16:14Z</updated>
	<author>
		<name>Juan Pablo Araya</name>
	</author>
	<content type="html">Juliana:
&lt;br&gt;&lt;br&gt;The configuration depends on the context where you run the
&lt;br&gt;application. In your case, if you run from your MVC project then you
&lt;br&gt;should have your xml files in the MVC, not the persistence library.
&lt;br&gt;The same if you run it in a console application, you should have your
&lt;br&gt;xml files in the directory of the application, because iBatis open the
&lt;br&gt;files per directory inside the context.
&lt;br&gt;&lt;br&gt;A feasible option in which you can have all inside the persistence
&lt;br&gt;library is to embed the xml files (embedded resource propertie of each
&lt;br&gt;xml file). With this, the xml get compiled in your persistance
&lt;br&gt;library. In order to do this, you must code your own Mapper class in
&lt;br&gt;which at the moment of configuring himself (InitMapper() method) it
&lt;br&gt;load the embedded files:
&lt;br&gt;&lt;br&gt;XmlDocument sqlMapConfig =
&lt;br&gt;Resourcs.GetEmbeddedResourceAsXmlDocument(&amp;quot;Config.sqlMap.config,
&lt;br&gt;Your.Library.Assemblie&amp;quot;);
&lt;br&gt;&lt;br&gt;Check the following link
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+an+embedded+sqlMap.config+file&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+an+embedded+sqlMap.config+file&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------
&lt;br&gt;La configuración depende mucho del contexto donde corras la
&lt;br&gt;aplicación. En tu caso, si lo corres desde tu proyecto MVC deberías
&lt;br&gt;tener los xml en el MVC y no en la librería. Lo mismo si lo corres en
&lt;br&gt;consola, debes dejarlos en el directorio de la consola ya que iBatis
&lt;br&gt;abre los archivos por directorio, dentro del contexto.
&lt;br&gt;&lt;br&gt;Una opción para que puedas tenerlo todo dentro de la librería y te
&lt;br&gt;olvides de los archivos, es que todos tus XML tengan la propiedad
&lt;br&gt;&amp;quot;embedded resource&amp;quot;. Con eso, los xml se compilan dentro de tu
&lt;br&gt;librería de persistencia. Para esto, debes crear tu propia clase
&lt;br&gt;Mapper, en la cual al momento de configurarse (método InitMapper())
&lt;br&gt;cargue los archivos embedidos:
&lt;br&gt;&lt;br&gt;XmlDocument sqlMapConfig =
&lt;br&gt;Resourcs.GetEmbeddedResourceAsXmlDocument(&amp;quot;Config.sqlMap.config,
&lt;br&gt;Your.Library.Assemblie&amp;quot;);
&lt;br&gt;&lt;br&gt;Revisa el siguiente link donde explican todo paso a paso:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+an+embedded+sqlMap.config+file&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+an+embedded+sqlMap.config+file&lt;/a&gt;&lt;br&gt;&lt;br&gt;2009/11/17 Juliana Machado &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389749&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;juliana.machado.85@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi!
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sorry my poor english ...
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have 2 projects: mvc application and another with the persistence database
&lt;br&gt;&amp;gt; (library). I need to have the configuration files ibatis (sqlmap, providers,
&lt;br&gt;&amp;gt; xmls) also in the application to MVC all work? Because I can run locally
&lt;br&gt;&amp;gt; ibatis when put into this project mvc, but not when put in the library.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thanks! :)
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26389285.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26389285.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389749&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389749&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Juan Pablo Araya
&lt;br&gt;787 76 034
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389749&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389749&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26389749.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26389685</id>
	<title>Re: asp.net mvc x library x ibatis</title>
	<published>2009-11-17T05:10:46Z</published>
	<updated>2009-11-17T05:10:46Z</updated>
	<author>
		<name>Michael McCurrey-3</name>
	</author>
	<content type="html">No problem, I&amp;#39;ll see if I can help.  This might just a problem with how your loading your SqlMap.config file.   How are you loading it?  From a file location or as an embedded resource?&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Tue, Nov 17, 2009 at 5:44 AM, Juliana Machado &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389685&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;juliana.machado.85@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
Hi!&lt;br&gt;
&lt;br&gt;
Sorry my poor english ...&lt;br&gt;
&lt;br&gt;
I have 2 projects: mvc application and another with the persistence database&lt;br&gt;
(library). I need to have the configuration files ibatis (sqlmap, providers,&lt;br&gt;
xmls) also in the application to MVC all work? Because I can run locally&lt;br&gt;
ibatis when put into this project mvc, but not when put in the library.&lt;br&gt;
&lt;br&gt;
Thanks! :)&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26389285.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26389285.html&lt;/a&gt;&lt;br&gt;
Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389685&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389685&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Michael J. McCurrey&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26389685.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26389285</id>
	<title>asp.net mvc x library x ibatis</title>
	<published>2009-11-17T04:44:08Z</published>
	<updated>2009-11-17T04:44:08Z</updated>
	<author>
		<name>Juliana Machado</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Sorry my poor english ...
&lt;br&gt;&lt;br&gt;I have 2 projects: mvc application and another with the persistence database (library). I need to have the configuration files ibatis (sqlmap, providers, xmls) also in the application to MVC all work? Because I can run locally ibatis when put into this project mvc, but not when put in the library.
&lt;br&gt;&lt;br&gt;Thanks! :)</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26389285.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26330955</id>
	<title>Re: batch inserts</title>
	<published>2009-11-12T19:44:17Z</published>
	<updated>2009-11-12T19:44:17Z</updated>
	<author>
		<name>panji aryaputra</name>
	</author>
	<content type="html">Hi all, can we use sql fragments as some sort of function? Is there a way to pass &amp;quot;parameters&amp;quot; to an sql fragment. My need is something like this (within one sql):&lt;div&gt;  &lt;/div&gt;&lt;div&gt;fragment1(parameter1)&lt;/div&gt;&lt;div&gt;
&lt;br&gt;&lt;/div&gt;&lt;div&gt;union&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;fragment1(parameter2)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Or probably there is another way to achieve the same thing in ibatis? My intention is to simplify the application codes while at the same time I do not want to create functions in the DBMS. Hope I made my self clear.&lt;/div&gt;
&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;TIA,&lt;/div&gt;&lt;div&gt;Panji&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 5, 2009 at 9:23 PM, Michael McCurrey &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330955&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mmccurrey@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;The exposed SqlCommandSet would definitely be a nice to have.  However, I do see a problem with the license and being able to just drop it in the source for iBatis as its currently licensed.  It could be wrapped as a third-party dll and reference that was as we currently do with the Castle dll&amp;#39;s.  But that would bring the number of DLL&amp;#39;s up to 5&lt;br&gt;

DataMapper,Common,Castle.Core,Castle.DynamicProxy2,Rhino.Commons.Clr&lt;br&gt;&lt;br&gt;thoughts?&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 5, 2009 at 2:05 AM, vinay.a &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330955&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vinay_onmail@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;&lt;br&gt;
The link for &amp;#39;SqlCommandSet.cs&amp;#39; has changed. See below:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://rhino-tools.svn.sourceforge.net/viewvc/rhino-tools/trunk/commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://rhino-tools.svn.sourceforge.net/viewvc/rhino-tools/trunk/commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&lt;/a&gt;&lt;br&gt;


&lt;br&gt;
&lt;br&gt;
Ron Grabowski wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Have you seen this?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;https://rhino-tools.svn.sourceforge.net/svnroot/rhino-tools/trunk/rhino-commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://rhino-tools.svn.sourceforge.net/svnroot/rhino-tools/trunk/rhino-commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&lt;/a&gt;&lt;br&gt;


&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ----- Original Message ----&lt;br&gt;
&amp;gt; From: Gilles Bayon &amp;lt;&lt;a href=&quot;http://ibatis.net&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;ibatis.net&lt;/a&gt;@&lt;a href=&quot;http://gmail.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;gmail.com&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330955&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs@...&lt;/a&gt;&lt;br&gt;
&amp;gt; Sent: Monday, June 30, 2008 3:43:57 PM&lt;br&gt;
&amp;gt; Subject: Re: batch inserts&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In &lt;a href=&quot;http://ADO.NET&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;ADO.NET&lt;/a&gt; there is no simple way to do batch statement in a db provider&lt;br&gt;
&amp;gt; independent manner as in JBDC.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; For now, I haven&amp;#39;t think of a good solution  to implement batch support in&lt;br&gt;
&amp;gt; iBATIS.NET.&lt;br&gt;
&amp;gt; Perhaps other people have some ideas ?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If you use SQL Server you do that with a store procedure and an XML in&lt;br&gt;
&amp;gt; parameter.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; Cheers,&lt;br&gt;
&amp;gt; Gilles&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/batch-inserts-tp18124219p26208634.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/batch-inserts-tp18124219p26208634.html&lt;/a&gt;&lt;br&gt;
Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330955&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26330955&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;font color=&quot;#888888&quot;&gt;-- &lt;br&gt;Michael J. McCurrey&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;


&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/batch-inserts-tp18124219p26330955.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26214451</id>
	<title>Re: batch inserts</title>
	<published>2009-11-05T05:23:45Z</published>
	<updated>2009-11-05T05:23:45Z</updated>
	<author>
		<name>Michael McCurrey-3</name>
	</author>
	<content type="html">The exposed SqlCommandSet would definitely be a nice to have.  However, I do see a problem with the license and being able to just drop it in the source for iBatis as its currently licensed.  It could be wrapped as a third-party dll and reference that was as we currently do with the Castle dll&amp;#39;s.  But that would bring the number of DLL&amp;#39;s up to 5&lt;br&gt;
DataMapper,Common,Castle.Core,Castle.DynamicProxy2,Rhino.Commons.Clr&lt;br&gt;&lt;br&gt;thoughts?&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 5, 2009 at 2:05 AM, vinay.a &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26214451&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vinay_onmail@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;br&gt;
The link for &amp;#39;SqlCommandSet.cs&amp;#39; has changed. See below:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://rhino-tools.svn.sourceforge.net/viewvc/rhino-tools/trunk/commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://rhino-tools.svn.sourceforge.net/viewvc/rhino-tools/trunk/commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&lt;/a&gt;&lt;br&gt;

&lt;br&gt;
&lt;br&gt;
Ron Grabowski wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Have you seen this?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;https://rhino-tools.svn.sourceforge.net/svnroot/rhino-tools/trunk/rhino-commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://rhino-tools.svn.sourceforge.net/svnroot/rhino-tools/trunk/rhino-commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&lt;/a&gt;&lt;br&gt;

&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ----- Original Message ----&lt;br&gt;
&amp;gt; From: Gilles Bayon &amp;lt;&lt;a href=&quot;http://ibatis.net&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;ibatis.net&lt;/a&gt;@&lt;a href=&quot;http://gmail.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;gmail.com&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26214451&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs@...&lt;/a&gt;&lt;br&gt;
&amp;gt; Sent: Monday, June 30, 2008 3:43:57 PM&lt;br&gt;
&amp;gt; Subject: Re: batch inserts&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; In &lt;a href=&quot;http://ADO.NET&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;ADO.NET&lt;/a&gt; there is no simple way to do batch statement in a db provider&lt;br&gt;
&amp;gt; independent manner as in JBDC.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; For now, I haven&amp;#39;t think of a good solution  to implement batch support in&lt;br&gt;
&amp;gt; iBATIS.NET.&lt;br&gt;
&amp;gt; Perhaps other people have some ideas ?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If you use SQL Server you do that with a store procedure and an XML in&lt;br&gt;
&amp;gt; parameter.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; Cheers,&lt;br&gt;
&amp;gt; Gilles&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://old.nabble.com/batch-inserts-tp18124219p26208634.html&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/batch-inserts-tp18124219p26208634.html&lt;/a&gt;&lt;br&gt;
Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26214451&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26214451&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Michael J. McCurrey&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/batch-inserts-tp18124219p26214451.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26208634</id>
	<title>Re: batch inserts</title>
	<published>2009-11-05T01:04:57Z</published>
	<updated>2009-11-05T01:04:57Z</updated>
	<author>
		<name>vinay.a</name>
	</author>
	<content type="html">The link for 'SqlCommandSet.cs' has changed. See below:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://rhino-tools.svn.sourceforge.net/viewvc/rhino-tools/trunk/commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rhino-tools.svn.sourceforge.net/viewvc/rhino-tools/trunk/commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Ron Grabowski wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Have you seen this?
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://rhino-tools.svn.sourceforge.net/svnroot/rhino-tools/trunk/rhino-commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://rhino-tools.svn.sourceforge.net/svnroot/rhino-tools/trunk/rhino-commons/Rhino.Commons/ToPublic/SqlCommandSet.cs&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;----- Original Message ----
&lt;br&gt;From: Gilles Bayon &amp;lt;ibatis.net@gmail.com&amp;gt;
&lt;br&gt;To: user-cs@ibatis.apache.org
&lt;br&gt;Sent: Monday, June 30, 2008 3:43:57 PM
&lt;br&gt;Subject: Re: batch inserts
&lt;br&gt;&lt;br&gt;In ADO.NET there is no simple way to do batch statement in a db provider independent manner as in JBDC.
&lt;br&gt;&lt;br&gt;For now, I haven't think of a good solution &amp;nbsp;to implement batch support in iBATIS.NET.
&lt;br&gt;Perhaps other people have some ideas ?
&lt;br&gt;&lt;br&gt;If you use SQL Server you do that with a store procedure and an XML in parameter.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Cheers,
&lt;br&gt;Gilles
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/batch-inserts-tp18124219p26208634.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26208625</id>
	<title>Whats new in iBatis dataMapper 1.6.2</title>
	<published>2009-11-05T00:48:09Z</published>
	<updated>2009-11-05T00:48:09Z</updated>
	<author>
		<name>vinay.a</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I am using iBatis.net dataMapper 1.6.1 in my project and i would like to know about, what is new in the 1.6.2 release.
&lt;br&gt;The downloads available for 1.6.2 at the link &lt;a href=&quot;http://ibatis.apache.org/dotnet.cgi&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ibatis.apache.org/dotnet.cgi&lt;/a&gt;&amp;nbsp;contain 1.6.1 documentation and SDK internally. Please advice.
&lt;br&gt;&lt;br&gt;Thanks and regards,
&lt;br&gt;Vinay</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Whats-new-in-iBatis-dataMapper-1.6.2-tp26208625p26208625.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26136674</id>
	<title>Re: Ibatis.Net 3.0 Beta</title>
	<published>2009-10-30T13:52:47Z</published>
	<updated>2009-10-30T13:52:47Z</updated>
	<author>
		<name>sirmak</name>
	</author>
	<content type="html">My fault, I found some checkins from rgrabowski on 10 Oct. 2009, thank you rgrabowski. 
&lt;br&gt;&lt;br&gt;Best Regards, </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ibatis.Net-3.0-Beta-tp26021447p26136674.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26021447</id>
	<title>Ibatis.Net 3.0 Beta</title>
	<published>2009-10-22T23:23:55Z</published>
	<updated>2009-10-22T23:23:55Z</updated>
	<author>
		<name>sirmak</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I couldn't see any activity on &lt;a href=&quot;http://fisheye6.cenqua.com/viewrep/ibatis&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;svn fisheye&lt;/a&gt;. Is there any planning on ibatis.net 3.0 beta release ?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;sirmak
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ibatis.Net-3.0-Beta-tp26021447p26021447.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25876851</id>
	<title>Re: Error occurred while loading SqlMap</title>
	<published>2009-10-13T09:59:29Z</published>
	<updated>2009-10-13T09:59:29Z</updated>
	<author>
		<name>Michael McCurrey-3</name>
	</author>
	<content type="html">A few things I see wrong.&lt;br&gt;1.  It looks like your putting the path to the type in the alias attribute, it should be in the type attribute&lt;br&gt;2.  It looks like you have a namespace &amp;amp; class the same (ie, ElementTypeEO is in there twice)?&lt;br&gt;
&lt;br&gt;3.  Something to change...  is the class public with an parameter-less constructor?&lt;br&gt;&lt;br&gt;&amp;quot;Base.EO.&lt;div id=&quot;:8b&quot; class=&quot;ii gt&quot;&gt;ConfigurationEO.ElementTypeEO.ElementTypeEO,&lt;br&gt;
Base&amp;quot;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 13, 2009 at 9:16 AM, jmsandy &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25876851&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmsandy@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
&lt;br&gt;
Good afternoon everyone!&lt;br&gt;
&lt;br&gt;
I&amp;#39;m having problem with iBATIS. I am using reflection to create the assembly&lt;br&gt;
objects. But going on an error. It happens only in one class.&lt;br&gt;
&lt;br&gt;
The error is as follows:&lt;br&gt;
&lt;br&gt;
&amp;quot;\r\n- The error occurred while loading SqlMap.\r\n- loading type alias\r\n-&lt;br&gt;
The error occurred in &amp;lt;sqlMap&lt;br&gt;
resource=\&amp;quot;${root}Informix\\Configuration\\ElementType.xml\&amp;quot;&lt;br&gt;
xmlns=\&amp;quot;&lt;a href=&quot;http://ibatis.apache.org/dataMapper&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://ibatis.apache.org/dataMapper&lt;/a&gt;\&amp;quot; /&amp;gt;.&amp;quot;}&lt;br&gt;
&lt;br&gt;
Here is my sqlmap. What could be.&lt;br&gt;
&lt;br&gt;
  &amp;lt;sqlMaps&amp;gt;&lt;br&gt;
     ......&lt;br&gt;
    &amp;lt;sqlMap resource=&amp;quot;${root}Informix\Configuration\ElementType.xml&amp;quot; /&amp;gt;&lt;br&gt;
     ......&lt;br&gt;
   &amp;lt;/sqlMaps&amp;gt;&lt;br&gt;
&lt;br&gt;
This my xml file(ElementType.XML):&lt;br&gt;
&lt;br&gt;
&amp;lt;sqlMap namespace=&amp;quot;ElementTypeEO&amp;quot; xmlns=&amp;quot;&lt;a href=&quot;http://ibatis.apache.org/mapping&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://ibatis.apache.org/mapping&lt;/a&gt;&amp;quot;&lt;br&gt;
xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;&amp;gt;&lt;br&gt;
  &amp;lt;alias&amp;gt;&lt;br&gt;
    &amp;lt;typeAlias alias=&amp;quot;Base.EO.ConfigurationEO.ElementTypeEO.ElementTypeEO,&lt;br&gt;
Base&amp;quot; /&amp;gt;&lt;br&gt;
  &amp;lt;/alias&amp;gt;&lt;br&gt;
  &amp;lt;resultMaps&amp;gt;&lt;br&gt;
    &amp;lt;resultMap id=&amp;quot;MapElementTypeEO&amp;quot; class=&amp;quot;ElementTypeEO&amp;quot;&amp;gt;&lt;br&gt;
      &amp;lt;result property=&amp;quot;Id&amp;quot; column=&amp;quot;id&amp;quot; /&amp;gt;&lt;br&gt;
      &amp;lt;result property=&amp;quot;OtherObj.ID&amp;quot; column=&amp;quot;id_other/&amp;gt;&lt;br&gt;
    &amp;lt;/resultMap&amp;gt;&lt;br&gt;
  &amp;lt;/resultMaps&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;
--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://www.nabble.com/Error-occurred-while-loading-SqlMap-tp25876018p25876018.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/Error-occurred-while-loading-SqlMap-tp25876018p25876018.html&lt;/a&gt;&lt;br&gt;

Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25876851&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25876851&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Michael J. McCurrey&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-occurred-while-loading-SqlMap-tp25876018p25876851.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25876018</id>
	<title>Error occurred while loading SqlMap</title>
	<published>2009-10-13T09:16:12Z</published>
	<updated>2009-10-13T09:16:12Z</updated>
	<author>
		<name>jmsandy</name>
	</author>
	<content type="html">&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;Good afternoon everyone!
&lt;br&gt;&lt;br&gt;I'm having problem with iBATIS. I am using reflection to create the assembly objects. But going on an error. It happens only in one class.
&lt;br&gt;&lt;br&gt;The error is as follows:
&lt;br&gt;&lt;br&gt;&amp;quot;\r\n- The error occurred while loading SqlMap.\r\n- loading type alias\r\n- The error occurred in &amp;lt;sqlMap resource=\&amp;quot;${root}Informix\\Configuration\\ElementType.xml\&amp;quot; xmlns=\&amp;quot;&lt;a href=&quot;http://ibatis.apache.org/dataMapper&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ibatis.apache.org/dataMapper&lt;/a&gt;\&amp;quot; /&amp;gt;.&amp;quot;}
&lt;br&gt;&lt;br&gt;Here is my sqlmap. What could be.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;sqlMaps&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;......
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;sqlMap resource=&amp;quot;${root}Informix\Configuration\ElementType.xml&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;......
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/sqlMaps&amp;gt;
&lt;br&gt;&lt;br&gt;This my xml file(ElementType.XML):
&lt;br&gt;&lt;br&gt;&amp;lt;sqlMap namespace=&amp;quot;ElementTypeEO&amp;quot; xmlns=&amp;quot;&lt;a href=&quot;http://ibatis.apache.org/mapping&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ibatis.apache.org/mapping&lt;/a&gt;&amp;quot; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;alias&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;typeAlias alias=&amp;quot;Base.EO.ConfigurationEO.ElementTypeEO.ElementTypeEO, Base&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/alias&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;resultMaps&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;resultMap id=&amp;quot;MapElementTypeEO&amp;quot; class=&amp;quot;ElementTypeEO&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;result property=&amp;quot;Id&amp;quot; column=&amp;quot;id&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;result property=&amp;quot;OtherObj.ID&amp;quot; column=&amp;quot;id_other/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/resultMap&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/resultMaps&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Error-occurred-while-loading-SqlMap-tp25876018p25876018.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25743218</id>
	<title>Re: Object in multiple tables</title>
	<published>2009-10-04T16:07:33Z</published>
	<updated>2009-10-04T16:07:33Z</updated>
	<author>
		<name>jmsandy</name>
	</author>
	<content type="html">Thanks Michael.
&lt;br&gt;&lt;br&gt;Indeed the first option and much more interesting.
&lt;br&gt;&lt;br&gt;Thanks for the tip.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael McCurrey-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;All depends on how you are going to be getting your primary key and how you
&lt;br&gt;would like it hydrated into your child tables.
&lt;br&gt;There are 2 ways to handle this,
&lt;br&gt;the first is to handle the inserts through a parent transaction and then do
&lt;br&gt;the subsequent insert calls through seperate mapper.Insert(...)
&lt;br&gt;You can get your auto-incremented primary key back using the selectKey
&lt;br&gt;element and push it back into your object.
&lt;br&gt;&lt;br&gt;OR,
&lt;br&gt;&lt;br&gt;It is possible to group multiple insert statements into one insert element,
&lt;br&gt;but its not very elegant or nice to your maint. developers :)
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Sun, Oct 4, 2009 at 1:20 PM, jmsandy &amp;lt;jmsandy@gmail.com&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi guys,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How do I break an object into multiple tables with iBatis. For example,
&lt;br&gt;&amp;gt; suppose the following object:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Message: dtMsg, Msg, annex, annex.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How would you write the fields: dtMsg and message, in message table and the
&lt;br&gt;&amp;gt; fields: annex, in other table.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How can I map this situation. The second table must have a foreign key to
&lt;br&gt;&amp;gt; the first table(message).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This is an simple example. I have a complex object that should &amp;nbsp;to be
&lt;br&gt;&amp;gt; mapped
&lt;br&gt;&amp;gt; in multiple tables.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; How do this mapping? Can anyone give me an example please.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thank you.
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context:
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.nabble.com/Object-in-multiple-tables-tp25741806p25741806.html&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/Object-in-multiple-tables-tp25741806p25741806.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: user-cs-unsubscribe@ibatis.apache.org
&lt;br&gt;&amp;gt; For additional commands, e-mail: user-cs-help@ibatis.apache.org
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael J. McCurrey
&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Object-in-multiple-tables-tp25741806p25743218.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25742676</id>
	<title>Re: Object in multiple tables</title>
	<published>2009-10-04T14:55:00Z</published>
	<updated>2009-10-04T14:55:00Z</updated>
	<author>
		<name>Michael McCurrey-3</name>
	</author>
	<content type="html">All depends on how you are going to be getting your primary key and how you would like it hydrated into your child tables. &lt;br&gt;There are 2 ways to handle this,&lt;br&gt;the first is to handle the inserts through a parent transaction and then do the subsequent insert calls through seperate mapper.Insert(...)&lt;br&gt;
You can get your auto-incremented primary key back using the selectKey element and push it back into your object.&lt;br&gt;&lt;br&gt;OR,&lt;br&gt;&lt;br&gt;It is possible to group multiple insert statements into one insert element, but its not very elegant or nice to your maint. developers :)&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sun, Oct 4, 2009 at 1:20 PM, jmsandy &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25742676&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jmsandy@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
Hi guys,&lt;br&gt;
&lt;br&gt;
How do I break an object into multiple tables with iBatis. For example,&lt;br&gt;
suppose the following object:&lt;br&gt;
&lt;br&gt;
Message: dtMsg, Msg, annex, annex.&lt;br&gt;
&lt;br&gt;
How would you write the fields: dtMsg and message, in message table and the&lt;br&gt;
fields: annex, in other table.&lt;br&gt;
&lt;br&gt;
How can I map this situation. The second table must have a foreign key to&lt;br&gt;
the first table(message).&lt;br&gt;
&lt;br&gt;
This is an simple example. I have a complex object that should  to be mapped&lt;br&gt;
in multiple tables.&lt;br&gt;
&lt;br&gt;
How do this mapping? Can anyone give me an example please.&lt;br&gt;
&lt;br&gt;
Thank you.&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://www.nabble.com/Object-in-multiple-tables-tp25741806p25741806.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/Object-in-multiple-tables-tp25741806p25741806.html&lt;/a&gt;&lt;br&gt;
Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25742676&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25742676&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Michael J. McCurrey&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Object-in-multiple-tables-tp25741806p25742676.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25741806</id>
	<title>Object in multiple tables</title>
	<published>2009-10-04T13:20:31Z</published>
	<updated>2009-10-04T13:20:31Z</updated>
	<author>
		<name>jmsandy</name>
	</author>
	<content type="html">Hi guys,
&lt;br&gt;&lt;br&gt;How do I break an object into multiple tables with iBatis. For example, suppose the following object:
&lt;br&gt;&lt;br&gt;Message: dtMsg, Msg, annex, annex.
&lt;br&gt;&lt;br&gt;How would you write the fields: dtMsg and message, in message table and the fields: annex, in other table. 
&lt;br&gt;&lt;br&gt;How can I map this situation. The second table must have a foreign key to the first table(message).
&lt;br&gt;&lt;br&gt;This is an simple example. I have a complex object that should &amp;nbsp;to be mapped in multiple tables.
&lt;br&gt;&lt;br&gt;How do this mapping? Can anyone give me an example please.
&lt;br&gt;&lt;br&gt;Thank you. </content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Object-in-multiple-tables-tp25741806p25741806.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25615898</id>
	<title>Re: Feature request: include inside iterate</title>
	<published>2009-09-25T10:24:34Z</published>
	<updated>2009-09-25T10:24:34Z</updated>
	<author>
		<name>Andrea Tassinari</name>
	</author>
	<content type="html">Sorry my fault.
&lt;br&gt;&lt;br&gt;Andrea
&lt;br&gt;&lt;br&gt;dannystommen wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; What exactly has this to do with my problem?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Michael McCurrey-3 wrote:
&lt;br&gt;&amp;gt;&amp;gt; yes. &amp;nbsp;that is a good one.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Mon, Sep 21, 2009 at 11:58 PM, Andrea Tassinari &amp;lt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25615898&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andreaml@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I've never felt the urge of having the tag &amp;lt;include refid=.... inside an
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; iterate tag. Well I have a complex query where I have to UNION ALL a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; series
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; of subqueries and finally apply a general ORDER BY. I'm used to group all
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the select field names in a sql tag and then have select statements like
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; this one:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; SELECT &amp;lt;include refid=&amp;quot;SelectFields&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; FROM ....
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Now, I implemented the union ALL throught out an iterate tag which does
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; not
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; support the include. which is a pity, isn't it?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; AndreaT
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25615898&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25615898&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; -- 
&lt;br&gt;&amp;gt;&amp;gt; Michael J. McCurrey
&lt;br&gt;&amp;gt;&amp;gt; Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;AndreaT
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25615898&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25615898&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25615898.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25607506</id>
	<title>Re: Feature request: include inside iterate</title>
	<published>2009-09-25T00:15:20Z</published>
	<updated>2009-09-25T00:15:20Z</updated>
	<author>
		<name>dannystommen</name>
	</author>
	<content type="html">What exactly has this to do with my problem?
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael McCurrey-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;yes. &amp;nbsp;that is a good one.
&lt;br&gt;&lt;br&gt;On Mon, Sep 21, 2009 at 11:58 PM, Andrea Tassinari &amp;lt;
&lt;br&gt;andreaml@i-mconsulting.com&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I've never felt the urge of having the tag &amp;lt;include refid=.... inside an
&lt;br&gt;&amp;gt; iterate tag. Well I have a complex query where I have to UNION ALL a series
&lt;br&gt;&amp;gt; of subqueries and finally apply a general ORDER BY. I'm used to group all
&lt;br&gt;&amp;gt; the select field names in a sql tag and then have select statements like
&lt;br&gt;&amp;gt; this one:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; SELECT &amp;lt;include refid=&amp;quot;SelectFields&amp;quot; /&amp;gt;
&lt;br&gt;&amp;gt; FROM ....
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Now, I implemented the union ALL throught out an iterate tag which does not
&lt;br&gt;&amp;gt; support the include. which is a pity, isn't it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; AndreaT
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: user-cs-unsubscribe@ibatis.apache.org
&lt;br&gt;&amp;gt; For additional commands, e-mail: user-cs-help@ibatis.apache.org
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Michael J. McCurrey
&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25607506.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25571118</id>
	<title>Re: Hastable and DateTime in DataMapper</title>
	<published>2009-09-22T21:23:54Z</published>
	<updated>2009-09-22T21:23:54Z</updated>
	<author>
		<name>Michael McCurrey-3</name>
	</author>
	<content type="html">A couple of things you can try Teddy,&lt;br&gt;&lt;br&gt;One, if you can use Dictionary&amp;lt;string,DateTime&amp;gt; instead of hashtable as your parameter, or&lt;br&gt;in your inline map parameter do something like this: #date,dbType=Date,type=DateTime#  (assuming your data column is a date column).&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Sep 22, 2009 at 8:44 AM, Teddy78 &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25571118&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;teddy.fredaigues@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
Hello,&lt;br&gt;
&lt;br&gt;
I have a problem when I use Hashtable of DateTime in ParameterClass :&lt;br&gt;
If I use DateTime in the Hastable a get the error  :&lt;br&gt;
                Input string was not in a correct format.&lt;br&gt;
If I do not use the parameter date in the Hashtable, all is correct.&lt;br&gt;
&lt;br&gt;
Have you got any ideas?&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
The source code :&lt;br&gt;
&lt;br&gt;
public List&amp;lt;DataDeal&amp;gt; GetDeals(string id, DateTime date)&lt;br&gt;
{&lt;br&gt;
        Hashtable map = new Hashtable();&lt;br&gt;
        map.Add(&amp;quot;id&amp;quot;, id);&lt;br&gt;
        map.Add(&amp;quot;date&amp;quot;, date); !! Problem with this line&lt;br&gt;
        return ExecuteQueryForList&amp;lt;DataDeal&amp;gt;(&amp;quot;SelectDeals&amp;quot;, map) as List&amp;lt;DataDeal&amp;gt;;&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
--------&lt;br&gt;
&lt;br&gt;
  &amp;lt;statements&amp;gt;&lt;br&gt;
    &amp;lt;select id=&amp;quot;SelectDeals&amp;quot; resultMap=&amp;quot;DealResult&amp;quot; parameterClass=&amp;quot;map&amp;quot;&amp;gt;&lt;br&gt;
      select code&lt;br&gt;
      from TDeal&lt;br&gt;
      where RefreshDate=#date# and id=#id#&lt;br&gt;
    &amp;lt;/select&amp;gt;&lt;br&gt;
  &amp;lt;/statements&amp;gt;&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;--&lt;br&gt;
View this message in context: &lt;a href=&quot;http://www.nabble.com/Hastable-and-DateTime-in-DataMapper-tp25530794p25530794.html&quot; target=&quot;_blank&quot;&gt;http://www.nabble.com/Hastable-and-DateTime-in-DataMapper-tp25530794p25530794.html&lt;/a&gt;&lt;br&gt;

Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25571118&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25571118&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Michael J. McCurrey&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hastable-and-DateTime-in-DataMapper-tp25530794p25571118.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25530794</id>
	<title>Hastable and DateTime in DataMapper</title>
	<published>2009-09-22T08:44:37Z</published>
	<updated>2009-09-22T08:44:37Z</updated>
	<author>
		<name>Teddy78</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I use DataMapper 1.6.2, SQL Server.
&lt;br&gt;&lt;br&gt;I have a problem when I use Hashtable of DateTime in ParameterClass : 
&lt;br&gt;If I use DateTime in the Hastable a get the error &amp;nbsp;: 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;Input string was not in a correct format.&lt;/b&gt;&lt;br&gt;If I do not use the parameter date in the Hashtable, all is correct.
&lt;br&gt;&lt;br&gt;Have you got any ideas?
&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;The source code :
&lt;br&gt;&lt;br&gt;public List&amp;lt;DataDeal&amp;gt; GetDeals(string id, DateTime date)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hashtable map = new Hashtable();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; map.Add(&amp;quot;id&amp;quot;, id);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;map.Add(&amp;quot;date&amp;quot;, date); !! Problem with this line&lt;/b&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return ExecuteQueryForList&amp;lt;DataDeal&amp;gt;(&amp;quot;SelectDeals&amp;quot;, map) as List&amp;lt;DataDeal&amp;gt;;
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;--------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;statements&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;select id=&amp;quot;SelectDeals&amp;quot; resultMap=&amp;quot;DealResult&amp;quot; parameterClass=&amp;quot;map&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; select code
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; from TDeal
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; where RefreshDate=#date# and id=#id#
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/select&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;/statements&amp;gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hastable-and-DateTime-in-DataMapper-tp25530794p25530794.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25558905</id>
	<title>Re: Feature request: include inside iterate</title>
	<published>2009-09-22T05:14:54Z</published>
	<updated>2009-09-22T05:14:54Z</updated>
	<author>
		<name>Michael McCurrey-3</name>
	</author>
	<content type="html">yes.  that is a good one.  &lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Sep 21, 2009 at 11:58 PM, Andrea Tassinari &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25558905&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andreaml@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Hi,&lt;br&gt;
&lt;br&gt;
I&amp;#39;ve never felt the urge of having the tag &amp;lt;include refid=.... inside an iterate tag. Well I have a complex query where I have to UNION ALL a series of subqueries and finally apply a general ORDER BY. I&amp;#39;m used to group all the select field names in a sql tag and then have select statements like this one:&lt;br&gt;

&lt;br&gt;
SELECT &amp;lt;include refid=&amp;quot;SelectFields&amp;quot; /&amp;gt;&lt;br&gt;
FROM ....&lt;br&gt;
&lt;br&gt;
Now, I implemented the union ALL throught out an iterate tag which does not support the include. which is a pity, isn&amp;#39;t it?&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
AndreaT&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25558905&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25558905&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Michael J. McCurrey&lt;br&gt;Read with me at &lt;a href=&quot;http://www.mccurrey.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.mccurrey.com&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://chaoticmindramblings.blogspot.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://chaoticmindramblings.blogspot.com/&lt;/a&gt;&lt;br&gt;

</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25558905.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25555421</id>
	<title>Feature request: include inside iterate</title>
	<published>2009-09-21T23:58:24Z</published>
	<updated>2009-09-21T23:58:24Z</updated>
	<author>
		<name>Andrea Tassinari</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I've never felt the urge of having the tag &amp;lt;include refid=.... inside an 
&lt;br&gt;iterate tag. Well I have a complex query where I have to UNION ALL a 
&lt;br&gt;series of subqueries and finally apply a general ORDER BY. I'm used to 
&lt;br&gt;group all the select field names in a sql tag and then have select 
&lt;br&gt;statements like this one:
&lt;br&gt;&lt;br&gt;SELECT &amp;lt;include refid=&amp;quot;SelectFields&amp;quot; /&amp;gt;
&lt;br&gt;FROM ....
&lt;br&gt;&lt;br&gt;Now, I implemented the union ALL throught out an iterate tag which does 
&lt;br&gt;not support the include. which is a pity, isn't it?
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;AndreaT
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25555421&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25555421&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;user-cs-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25555421.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25276679</id>
	<title>Re: &lt;generate&gt; tag not working</title>
	<published>2009-09-03T06:59:58Z</published>
	<updated>2009-09-03T06:59:58Z</updated>
	<author>
		<name>dannystommen</name>
	</author>
	<content type="html">&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael McCurrey-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Yes, but I should have asked what DB you were using..
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
Database: MySQL 5.1
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael McCurrey-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Your Insert is might not working because your passing in your Insert map,
&lt;br&gt;but your ID Column/Property is defined in your Update Map.
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
That's because the id column is AutoIncrement. That means that the generated SQL should be &amp;quot;INSERT INTO test_table (name) VALUES (#name)&amp;quot;, but it is INSERT INTO test_table() VALUES ()&amp;quot;. So the name property isn't used.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael McCurrey-3 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;I also noticed that your column's and properties have different casing in
&lt;br&gt;them. &amp;nbsp;There seems to be a bug in Generate in that its ignoring your
&lt;br&gt;parametermap to do the conversion between Property and Column. &amp;nbsp;For a
&lt;br&gt;workaround, set your property to the same casing as the column or
&lt;br&gt;vice-versa. &amp;nbsp;I will address this in 1.6.3
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
I changed the casing in both Property as Column to lower, but still doesn't work</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25276679.html" />
</entry>

</feed>
