Re: .NET 4?
I'm running it today with .net 4 and I'm good. On Tue, May 18, 2010 at 3:23 PM, Andrew Osman andrew.os...@gmail.comwrote: We compile the 1.6.2 source with .NET 3.5 SP1 and it works fine. I imagine it would work just fine with .NET 4.0. On Tue, May 18, 2010 at 4:21 PM, Chen Jin c...@helpathome.com wrote: Hi All, I guess this is a simple question… Just want to make sure: If I use .NET4 VS2010, shall I recompile the iBatis.NET (1.6.2 I am currently using) code or just use the current .NET 2 binary? Anyone has any experience? Thanks a lot! Chen -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: IbatisNet,Ibatis DataAccess and Connection Pooling
Your connection pooling should be handled through your ado.net connection string; both SQL Server and Sybase have configuration options for this. I personally use the Castle project for my IOC framework and it works really well. On Mon, May 10, 2010 at 2:10 AM, Chetan V Minajagi chetan.v.minaj...@jpmchase.com wrote: Hi, We have an application where we need to connect to two different databases SQL server and Sybase. We feel using ibatisNet Data Access we can configure connections to these two datasources and will be able to have a nice way of seamlessly connecting to multiple homogenous databases. Also we are planning to use Enterprise Library for most things.Still not sure which one Spring.Net /Enterprise library to pick though. Either way if we use any of the two can you please let us know how to configure ibatis configurations through this.Especially how do we use connection pooling. Can any one of you suggest a nice way of doing this? Warm Regards, Chetan This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase Co., its subsidiaries and affiliates. This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to European legal entities. -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: iBatis.Net future release
I agree with Michael Schall. My work duties school prevent me from doing the same. On Fri, May 7, 2010 at 7:36 PM, Michael Schall mike.sch...@gmail.comwrote: Not discontinued, but in need of a leader. I don't have the the time currently to devote to leading a new version, but would help develop as much as I can. Any chance any of the other commiters would like to lead the .net version? On Fri, May 7, 2010 at 3:22 PM, Hardy Wang hardyw...@hotmail.com wrote: Obviously .Net version of release is several steps behind Java version. What is the plan from iBatis team? Is .Net still under new development or it is discontinued already? Hardy -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Microsoft.NET iBatisNet DataReader
There is an un-official patch that was submitted a few years back that still works that will patch the 1.X line to get a DataReader back. You can also pull the trunk for iBatis 3 which already produces the Reader / Table. 2010/4/26 michael.roe...@vattenfall.de Hi Guys, I am using the iBatis .NET Version and we have a requirement to get an IDataReader back from iBatis, instead of an IList of objects . Any answer is highly appreciated. Thanks and regards from Hamburg, Germany Michael Michael Roepke IT-Consultant Vattenfall Energy Trading GmbH Ludwig-Erhard-Straße 18 20 20459 Hamburg Tel. +49 40 24430 461 michael.roe...@vattenfall.de #==# Vattenfall Europe Information Services GmbH, Hamburg, Amtsgericht Hamburg - HRB 86516 Vorsitzender des Aufsichtsrates: Dr. Stefan Keese Geschäftsführer: Ernst Wudtke, Armin Fischer, Lennart Atternäs -- Diese E-Mail wurde digital signiert. Sie können anhand der Signatur nachvollziehen, dass die E-Mail wirklich von Vattenfall stammt und dass deren Inhalt auf dem Transportweg nicht manipuliert wurde. Weitere Informationen über die eingesetzten Signaturen finden Sie auf unserer Website unter www.vattenfall.de/pki -- -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: How can I contribute for the iBatis.Net project?
Basically, submit patches is the best approach! You can also help out on documentation; that would be awesome! On Thu, Apr 1, 2010 at 4:19 PM, aranja0 aran...@gmail.com wrote: How can I participate in the development of iBatis .Net data mapper? I really like this framework and would like to take part in the development. -- View this message in context: http://old.nabble.com/How-can-I-contribute-for-the-iBatis.Net-project--tp28114469p28114469.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Transaction across multiple SqlMapConfig
What I currently do Jose is use the Castle framework and use its Transaction package. I currently span transactions across Oracle, SQL Server, and Teradata. You can find it here: http://www.castleproject.org/ On Tue, Mar 23, 2010 at 5:51 AM, jozeibatis jose.granja.marti...@gmail.comwrote: Hello, first of all I want to apologize for my bad english, I'll try to do my best. I have a problem and I can't work out the solution. My application is divided in modules and for designing propuses every module has it's own SqlMapConfig and Mapper. The application is composed by Core + Modules. Every module is in a .DLL Everything works fine except when it comes to transactions. Even if all the SqlMapConfig shares the same conection string transactions are not working properly. Every DAO created is seen as a separate conection. The escanario is the following: OpenTransaction Core Insert into core object A Insert into core object B Insert into Module 1 object C Insert into Module 2 object e commit Core transaction When I get to the line code: Insert into Module 1 object C I get a connection timeout. That is because my transaction level is Serializable and the database is expecting that the Transaction Core finishes before doing something else. Ibatis is not seein both Mapper as the same connection. Any ideas how I do that? As a global idea I need transactions over DAO loaded by diferents SqlMaps pointing to the same db. hope I make everythying clear. I would appreciate a lot any advice you can give me. regards, jose -- View this message in context: http://old.nabble.com/Transaction-across-multiple-SqlMapConfig-tp28000351p28000351.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Any new release plan?
Yes! Sorry, just been wrapped up in personal stuff lately. getting ready to do a release of the 1.X line with the partial trust support built in and prebuilt 3.4 and 4.x (beta 2) binaries, and a 'beta' of the 3.X line just before spring. On Mon, Jan 18, 2010 at 10:49 PM, Yaojian sky...@gmail.com wrote: Is there any release plan for the next version of the ibatis for .NET ? -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Options to implement nested transactions with iBatis.NET
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. On Thu, Dec 3, 2009 at 8:32 AM, Roger Champagne rcham...@gmail.com wrote: Hi, I just joined this mailing list this week, this is my first post. 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. I am also a novice in database related questions, so please excuse any naive or wrong assumptions/questions. 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'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. As I am not familiar with either Castle or the System.Transactions API, I'm basically looking for advice as to which of the two solutions (or perhaps yet another solution) I should be looking into. Thanks for any advice you might have on this issue. Sincerely, Roger Champagne -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: asp.net mvc x library x ibatis
No problem, I'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? On Tue, Nov 17, 2009 at 5:44 AM, Juliana Machado juliana.machado...@hotmail.com wrote: Hi! Sorry my poor english ... 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. Thanks! :) -- View this message in context: http://old.nabble.com/asp.net-mvc-x-library-x-ibatis-tp26389285p26389285.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: .net Apache
To be honest, I haven't used the Spring.NET configuration, I'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 On Tue, Nov 17, 2009 at 8:56 AM, puow d...@dezmond.co.uk wrote: * 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:* [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 '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.] *I have a User.xml sqlMap:* ?xml version=1.0 encoding=utf-8 ? sqlMap typeAlias alias=User assembly=ExampleApplication type=ExampleApplication.Models.Entity.User / resultMap id=SelectAllResult class=User result property=Id column=id / result property=Name column=name / result property=CreatedBy column=createdBy / result property=ModfiiedBy column=modifiedBy / result property=CreatedOn column=createdOn / result property=ModifiedOn column=modifiedOn / /resultMap select id=SelectAll resultMap=SelectAllResult select id, name, createdBy, modifiedBy, createdOn, modifiedOn from USERS /select /sqlMap *As well as the UserDao and iBatisDao object:* public class IbatisDao { private ISqlMapper sqlMap; public ISqlMapper SqlMap { get { return sqlMap; } set { sqlMap = value; } } } public class UserDao : IbatisDao, IUserDao { public ListUser selectAll() { return (ListUser)SqlMap.QueryForList(SelectAll,null); } } *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.* object id=builder type=IBatisNet.DataMapper.Configuration.DomSqlMapBuilder, IBatisNet.DataMapper singleton=true/ object id=sqlMapper
Re: Error occurred while loading SqlMap
A few things I see wrong. 1. It looks like your putting the path to the type in the alias attribute, it should be in the type attribute 2. It looks like you have a namespace class the same (ie, ElementTypeEO is in there twice)? 3. Something to change... is the class public with an parameter-less constructor? Base.EO.ConfigurationEO.ElementTypeEO.ElementTypeEO, Base On Tue, Oct 13, 2009 at 9:16 AM, jmsandy jmsa...@gmail.com wrote: Good afternoon everyone! 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. The error is as follows: \r\n- The error occurred while loading SqlMap.\r\n- loading type alias\r\n- The error occurred in sqlMap resource=\${root}Informix\\Configuration\\ElementType.xml\ xmlns=\http://ibatis.apache.org/dataMapper\; /.} Here is my sqlmap. What could be. sqlMaps .. sqlMap resource=${root}Informix\Configuration\ElementType.xml / .. /sqlMaps This my xml file(ElementType.XML): sqlMap namespace=ElementTypeEO xmlns=http://ibatis.apache.org/mapping; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; alias typeAlias alias=Base.EO.ConfigurationEO.ElementTypeEO.ElementTypeEO, Base / /alias resultMaps resultMap id=MapElementTypeEO class=ElementTypeEO result property=Id column=id / result property=OtherObj.ID column=id_other/ /resultMap /resultMaps Thanks. -- View this message in context: http://www.nabble.com/Error-occurred-while-loading-SqlMap-tp25876018p25876018.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Object in multiple tables
All depends on how you are going to be getting your primary key and how you would like it hydrated into your child tables. There are 2 ways to handle this, the first is to handle the inserts through a parent transaction and then do the subsequent insert calls through seperate mapper.Insert(...) You can get your auto-incremented primary key back using the selectKey element and push it back into your object. OR, It is possible to group multiple insert statements into one insert element, but its not very elegant or nice to your maint. developers :) On Sun, Oct 4, 2009 at 1:20 PM, jmsandy jmsa...@gmail.com wrote: Hi guys, How do I break an object into multiple tables with iBatis. For example, suppose the following object: Message: dtMsg, Msg, annex, annex. How would you write the fields: dtMsg and message, in message table and the fields: annex, in other table. How can I map this situation. The second table must have a foreign key to the first table(message). This is an simple example. I have a complex object that should to be mapped in multiple tables. How do this mapping? Can anyone give me an example please. Thank you. -- View this message in context: http://www.nabble.com/Object-in-multiple-tables-tp25741806p25741806.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Feature request: include inside iterate
yes. that is a good one. On Mon, Sep 21, 2009 at 11:58 PM, Andrea Tassinari andre...@i-mconsulting.com wrote: Hi, I've never felt the urge of having the tag 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'm used to group all the select field names in a sql tag and then have select statements like this one: SELECT include refid=SelectFields / FROM Now, I implemented the union ALL throught out an iterate tag which does not support the include. which is a pity, isn't it? -- AndreaT - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Hastable and DateTime in DataMapper
A couple of things you can try Teddy, One, if you can use Dictionarystring,DateTime instead of hashtable as your parameter, or in your inline map parameter do something like this: #date,dbType=Date,type=DateTime# (assuming your data column is a date column). On Tue, Sep 22, 2009 at 8:44 AM, Teddy78 teddy.fredaig...@sgcib.com wrote: Hello, I have a problem when I use Hashtable of DateTime in ParameterClass : If I use DateTime in the Hastable a get the error : Input string was not in a correct format. If I do not use the parameter date in the Hashtable, all is correct. Have you got any ideas? Thanks The source code : public ListDataDeal GetDeals(string id, DateTime date) { Hashtable map = new Hashtable(); map.Add(id, id); map.Add(date, date); !! Problem with this line return ExecuteQueryForListDataDeal(SelectDeals, map) as ListDataDeal; } statements select id=SelectDeals resultMap=DealResult parameterClass=map select code from TDeal where RefreshDate=#date# and id=#id# /select /statements -- View this message in context: http://www.nabble.com/Hastable-and-DateTime-in-DataMapper-tp25530794p25530794.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: generate tag not working
Yes, but I should have asked what DB you were using.. Your Insert is might not working because your passing in your Insert map, but your ID Column/Property is defined in your Update Map. I also noticed that your column's and properties have different casing in them. There seems to be a bug in Generate in that its ignoring your parametermap to do the conversion between Property and Column. For a workaround, set your property to the same casing as the column or vice-versa. I will address this in 1.6.3 On Thu, Sep 3, 2009 at 2:25 AM, dannystommen da...@techconnect.nl wrote: Michael, did you manage to take a look at it? Michael McCurrey-3 wrote: I'll take a look at it tonight Danny. Stay tuned. On Wed, Sep 2, 2009 at 12:02 AM, dannystommen da...@techconnect.nl wrote: Where can 1.6.3 be found? On ibatis.apache.org I can only find 1.6.2. I upgraded to this version. Still doesn't work My XML ?xml version=1.0 encoding=UTF-8? sqlMap namespace=Test xmlns=http://ibatis.apache.org/mapping; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://ibatis.apache.org/mapping../Config/SqlMap.xsd resultMaps resultMap id=TestResult class=Test result property=ID column=id / result property=Name column=name / /resultMap /resultMaps parameterMaps parameterMap id=insert class=Test paramater property=Name column=name / /parameterMap parameterMap id=update class=Test extends=insert paramater property=ID column=id / /parameterMap /parameterMaps statements insert id=Insert parameterMap=insert selectKey property=ID type=post resultClass=int select LAST_INSERT_ID() as value /selectKey generate table=test_table / /insert update id=Update parameterMap=update generate table=test_table by=id/generate /update /statements /sqlMap Michael McCurrey-3 wrote: Can you update to 1.6.3 and see if it works, if not, send me your updated map file and I'll take a look. Did you change the result for both your insert and your update map? On Tue, Sep 1, 2009 at 8:18 AM, dannystommen da...@techconnect.nl wrote: Version 1.6.1 Michael McCurrey-3 wrote: What version of iBatis? On Tue, Sep 1, 2009 at 8:12 AM, dannystommen da...@techconnect.nl wrote: Thanks for your fast reply. I changed it, but the result is still the same incorrect sql statement Michael McCurrey-3 wrote: Well, One thing I notice that is wrong is your using a result element in your parameter Maps. Instead of this: parameterMap id=insert class=Test result property=Name column=name / /parameterMap Try this: parameterMap id=insert class=Test parameter property=Name column=name / /parameterMap On Tue, Sep 1, 2009 at 6:07 AM, dannystommen da...@techconnect.nl wrote: Hi there, I'm trying to use parameterMaps with the generate tag, but it is not working. I have a databse with table 'test_table' and 2 colums: id name resultMaps resultMap id=TestResult class=Test result property=ID column=id / result property=Name column=name / /resultMap /resultMaps parameterMaps parameterMap id=insert class=Test result property=Name column=name / /parameterMap parameterMap id=update class=Test extends=insert result property=ID column=id / /parameterMap /parameterMaps statements !--Insert description-- insert id=Insert parameterMap=insert selectKey property=ID type=post resultClass=int select LAST_INSERT_ID() as value /selectKey generate table=test_table / /insert update id=Update parameterMap=update generate table=test_table by=id / /update /statements /sqlMap the first error occurs when I try to configure Ibatis (first use). Specified argument was out of the range of valid values.\r\nParameter name: index. This happens in de update tag. When I comment this generate tag out, the configuration succeeds. Why is this happening, I don't have any parameter that is named 'index'. Secondly, when I try to execute the insert statement, it fails with the message dat column 'name' has no default value. After some debugging, I saw that ibatis generated the next insert statement: INSERT INTO test_table () VALUES (), while it should be: INSERT INTO test_table (name) VALUES (something_here?) Why is this happening? -- View this message in context
Re: generate tag not working
I'll take a look at it tonight Danny. Stay tuned. On Wed, Sep 2, 2009 at 12:02 AM, dannystommen da...@techconnect.nl wrote: Where can 1.6.3 be found? On ibatis.apache.org I can only find 1.6.2. I upgraded to this version. Still doesn't work My XML ?xml version=1.0 encoding=UTF-8? sqlMap namespace=Test xmlns=http://ibatis.apache.org/mapping; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://ibatis.apache.org/mapping ../Config/SqlMap.xsd resultMaps resultMap id=TestResult class=Test result property=ID column=id / result property=Name column=name / /resultMap /resultMaps parameterMaps parameterMap id=insert class=Test paramater property=Name column=name / /parameterMap parameterMap id=update class=Test extends=insert paramater property=ID column=id / /parameterMap /parameterMaps statements insert id=Insert parameterMap=insert selectKey property=ID type=post resultClass=int select LAST_INSERT_ID() as value /selectKey generate table=test_table / /insert update id=Update parameterMap=update generate table=test_table by=id/generate /update /statements /sqlMap Michael McCurrey-3 wrote: Can you update to 1.6.3 and see if it works, if not, send me your updated map file and I'll take a look. Did you change the result for both your insert and your update map? On Tue, Sep 1, 2009 at 8:18 AM, dannystommen da...@techconnect.nl wrote: Version 1.6.1 Michael McCurrey-3 wrote: What version of iBatis? On Tue, Sep 1, 2009 at 8:12 AM, dannystommen da...@techconnect.nl wrote: Thanks for your fast reply. I changed it, but the result is still the same incorrect sql statement Michael McCurrey-3 wrote: Well, One thing I notice that is wrong is your using a result element in your parameter Maps. Instead of this: parameterMap id=insert class=Test result property=Name column=name / /parameterMap Try this: parameterMap id=insert class=Test parameter property=Name column=name / /parameterMap On Tue, Sep 1, 2009 at 6:07 AM, dannystommen da...@techconnect.nl wrote: Hi there, I'm trying to use parameterMaps with the generate tag, but it is not working. I have a databse with table 'test_table' and 2 colums: id name resultMaps resultMap id=TestResult class=Test result property=ID column=id / result property=Name column=name / /resultMap /resultMaps parameterMaps parameterMap id=insert class=Test result property=Name column=name / /parameterMap parameterMap id=update class=Test extends=insert result property=ID column=id / /parameterMap /parameterMaps statements !--Insert description-- insert id=Insert parameterMap=insert selectKey property=ID type=post resultClass=int select LAST_INSERT_ID() as value /selectKey generate table=test_table / /insert update id=Update parameterMap=update generate table=test_table by=id / /update /statements /sqlMap the first error occurs when I try to configure Ibatis (first use). Specified argument was out of the range of valid values.\r\nParameter name: index. This happens in de update tag. When I comment this generate tag out, the configuration succeeds. Why is this happening, I don't have any parameter that is named 'index'. Secondly, when I try to execute the insert statement, it fails with the message dat column 'name' has no default value. After some debugging, I saw that ibatis generated the next insert statement: INSERT INTO test_table () VALUES (), while it should be: INSERT INTO test_table (name) VALUES (something_here?) Why is this happening? -- View this message in context: http://www.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25240019.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/ -- View this message in context: http://www.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25242101.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr
Re: generate tag not working
Well, One thing I notice that is wrong is your using a result element in your parameter Maps. Instead of this: parameterMap id=insert class=Test result property=Name column=name / /parameterMap Try this: parameterMap id=insert class=Test parameter property=Name column=name / /parameterMap On Tue, Sep 1, 2009 at 6:07 AM, dannystommen da...@techconnect.nl wrote: Hi there, I'm trying to use parameterMaps with the generate tag, but it is not working. I have a databse with table 'test_table' and 2 colums: id name resultMaps resultMap id=TestResult class=Test result property=ID column=id / result property=Name column=name / /resultMap /resultMaps parameterMaps parameterMap id=insert class=Test result property=Name column=name / /parameterMap parameterMap id=update class=Test extends=insert result property=ID column=id / /parameterMap /parameterMaps statements !--Insert description-- insert id=Insert parameterMap=insert selectKey property=ID type=post resultClass=int select LAST_INSERT_ID() as value /selectKey generate table=test_table / /insert update id=Update parameterMap=update generate table=test_table by=id / /update /statements /sqlMap the first error occurs when I try to configure Ibatis (first use). Specified argument was out of the range of valid values.\r\nParameter name: index. This happens in de update tag. When I comment this generate tag out, the configuration succeeds. Why is this happening, I don't have any parameter that is named 'index'. Secondly, when I try to execute the insert statement, it fails with the message dat column 'name' has no default value. After some debugging, I saw that ibatis generated the next insert statement: INSERT INTO test_table () VALUES (), while it should be: INSERT INTO test_table (name) VALUES (something_here?) Why is this happening? -- View this message in context: http://www.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25240019.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: generate tag not working
Can you update to 1.6.3 and see if it works, if not, send me your updated map file and I'll take a look. Did you change the result for both your insert and your update map? On Tue, Sep 1, 2009 at 8:18 AM, dannystommen da...@techconnect.nl wrote: Version 1.6.1 Michael McCurrey-3 wrote: What version of iBatis? On Tue, Sep 1, 2009 at 8:12 AM, dannystommen da...@techconnect.nl wrote: Thanks for your fast reply. I changed it, but the result is still the same incorrect sql statement Michael McCurrey-3 wrote: Well, One thing I notice that is wrong is your using a result element in your parameter Maps. Instead of this: parameterMap id=insert class=Test result property=Name column=name / /parameterMap Try this: parameterMap id=insert class=Test parameter property=Name column=name / /parameterMap On Tue, Sep 1, 2009 at 6:07 AM, dannystommen da...@techconnect.nl wrote: Hi there, I'm trying to use parameterMaps with the generate tag, but it is not working. I have a databse with table 'test_table' and 2 colums: id name resultMaps resultMap id=TestResult class=Test result property=ID column=id / result property=Name column=name / /resultMap /resultMaps parameterMaps parameterMap id=insert class=Test result property=Name column=name / /parameterMap parameterMap id=update class=Test extends=insert result property=ID column=id / /parameterMap /parameterMaps statements !--Insert description-- insert id=Insert parameterMap=insert selectKey property=ID type=post resultClass=int select LAST_INSERT_ID() as value /selectKey generate table=test_table / /insert update id=Update parameterMap=update generate table=test_table by=id / /update /statements /sqlMap the first error occurs when I try to configure Ibatis (first use). Specified argument was out of the range of valid values.\r\nParameter name: index. This happens in de update tag. When I comment this generate tag out, the configuration succeeds. Why is this happening, I don't have any parameter that is named 'index'. Secondly, when I try to execute the insert statement, it fails with the message dat column 'name' has no default value. After some debugging, I saw that ibatis generated the next insert statement: INSERT INTO test_table () VALUES (), while it should be: INSERT INTO test_table (name) VALUES (something_here?) Why is this happening? -- View this message in context: http://www.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25240019.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/ -- View this message in context: http://www.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25242101.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/ -- View this message in context: http://www.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25242269.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: generate tag not working
I think I meant 1.6.2, 1.6.3 is in the works.. On Tue, Sep 1, 2009 at 8:22 AM, Michael McCurrey mmccur...@gmail.comwrote: Can you update to 1.6.3 and see if it works, if not, send me your updated map file and I'll take a look. Did you change the result for both your insert and your update map? On Tue, Sep 1, 2009 at 8:18 AM, dannystommen da...@techconnect.nl wrote: Version 1.6.1 Michael McCurrey-3 wrote: What version of iBatis? On Tue, Sep 1, 2009 at 8:12 AM, dannystommen da...@techconnect.nl wrote: Thanks for your fast reply. I changed it, but the result is still the same incorrect sql statement Michael McCurrey-3 wrote: Well, One thing I notice that is wrong is your using a result element in your parameter Maps. Instead of this: parameterMap id=insert class=Test result property=Name column=name / /parameterMap Try this: parameterMap id=insert class=Test parameter property=Name column=name / /parameterMap On Tue, Sep 1, 2009 at 6:07 AM, dannystommen da...@techconnect.nl wrote: Hi there, I'm trying to use parameterMaps with the generate tag, but it is not working. I have a databse with table 'test_table' and 2 colums: id name resultMaps resultMap id=TestResult class=Test result property=ID column=id / result property=Name column=name / /resultMap /resultMaps parameterMaps parameterMap id=insert class=Test result property=Name column=name / /parameterMap parameterMap id=update class=Test extends=insert result property=ID column=id / /parameterMap /parameterMaps statements !--Insert description-- insert id=Insert parameterMap=insert selectKey property=ID type=post resultClass=int select LAST_INSERT_ID() as value /selectKey generate table=test_table / /insert update id=Update parameterMap=update generate table=test_table by=id / /update /statements /sqlMap the first error occurs when I try to configure Ibatis (first use). Specified argument was out of the range of valid values.\r\nParameter name: index. This happens in de update tag. When I comment this generate tag out, the configuration succeeds. Why is this happening, I don't have any parameter that is named 'index'. Secondly, when I try to execute the insert statement, it fails with the message dat column 'name' has no default value. After some debugging, I saw that ibatis generated the next insert statement: INSERT INTO test_table () VALUES (), while it should be: INSERT INTO test_table (name) VALUES (something_here?) Why is this happening? -- View this message in context: http://www.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25240019.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/ -- View this message in context: http://www.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25242101.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/ -- View this message in context: http://www.nabble.com/%3Cgenerate%3E-tag-not-working-tp25240019p25242269.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/ -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: release plan for beta 1
Very soon, the tests are passing but all the directly supported databases need to pass the unit tests first. I'm currently working on PostGre, and then there is the porting document the end-user documentation to do. On Thu, Aug 13, 2009 at 10:43 AM, sirmak irmakser...@gmail.com wrote: thanks Clinton, I mean ibatis.net Clinton Begin wrote: It's already released. On Thu, Aug 13, 2009 at 3:54 AM, sirmak irmakser...@gmail.com wrote: Hi, Is there a release plan for beta 1 ? thanks, -- View this message in context: http://www.nabble.com/release-plan-for-beta-1-tp24952135p24952135.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- View this message in context: http://www.nabble.com/release-plan-for-beta-1-tp24952135p24955751.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: [vote] Promote DataMapper 1.6 to General Availability
Voting has closed, with more positive than negative votes, I'll update the website shortly and iBatis Datamapper 1.62 is now GA. On Mon, Aug 3, 2009 at 2:40 PM, Michael McCurrey mmccur...@gmail.comwrote: Sorry for the delay in calling the vote - lot of stuff going on. Since there have been no major issues reported, I would like to call for a vote to promote ibatis.net datamapper 1.62 beta to release status. I'd like to close voting on 1/8/09 I'll cast mine now,+1 -- Michael J. McCurrey -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Ibatis 3.0 Alpha Mono support
I have not tested iBatis 3.0 on mono as of yet, but Mono support is definitely something I am shooting for. On Thu, Aug 6, 2009 at 1:11 AM, sirmak irmakser...@gmail.com wrote: Hi, Does Ibatis 3.0 Alpha supports Mono ? Cheers, -- View this message in context: http://www.nabble.com/Ibatis-3.0-Alpha-Mono-support-tp24840831p24840831.html Sent from the iBATIS - User - Cs mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-cs-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-cs-h...@ibatis.apache.org -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Medium Trust Environments
Which version number of DynamicProxy did you switch to? On Thu, Jul 30, 2009 at 7:43 AM, Erin Rollenhagen e...@entrepreneurialtechnologies.com wrote: Bingo!!! That solved the reflection error. Thank you! *From:* Ron Grabowski [mailto:rongrabow...@yahoo.com] *Sent:* Wednesday, July 29, 2009 10:35 PM *To:* user-cs@ibatis.apache.org; mich...@mccurrey.com *Subject:* Re: Medium Trust Environments I think there is a setting / to turn off the IL optimizations which means you can't use any of the lazy loading. -- *From:* Michael McCurrey mmccur...@gmail.com *To:* user-cs@ibatis.apache.org *Sent:* Tuesday, July 28, 2009 9:02:13 PM *Subject:* Re: Medium Trust Environments I'm not around a compiler at the moment; but I do recall reading someplace that the Castle.DynamicProxy (old version) as is doesn't allow partially trusted calls. You'd either have to link it to a version that does or ILMerge it into the iBatis DLL. It's a pain. On Tue, Jul 28, 2009 at 5:39 PM, Erin Rollenhagen e...@entrepreneurialtechnologies.com wrote: An update: I’ve now recompiled the Ibatis.Net dlls using AllowPartiallyTrustedCallers and have come up with a new exception: [SecurityException: Request for the permission of type 'System.Security.Permissions.ReflectionPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark stackMark, Boolean isPermSet) +0 System.Security.CodeAccessPermission.Demand() +58 System.Reflection.Emit.DynamicMethod.PerformSecurityCheck(Module m, StackCrawlMark stackMark, Boolean skipVisibility) +191 System.Reflection.Emit.DynamicMethod..ctor(String name, Type returnType, Type[] parameterTypes, Module m, Boolean skipVisibility) +49 IBatisNet.Common.Utilities.Objects.Members.DelegatePropertySetAccessor..ctor(Type targetObjectType, String propName) +700 IBatisNet.Common.Utilities.Objects.Members.SetAccessorFactory.CreateDynamicPropertySetAccessor(Type targetType, String propertyName) +235 IBatisNet.Common.Utilities.Objects.Members.SetAccessorFactory.CreateSetAccessor(Type targetType, String name) +453 IBatisNet.DataMapper.Configuration.ResultMapping.ResultProperty.Initialize(ConfigurationScope configScope, Type resultClass) +336 IBatisNet.DataMapper.Configuration.ResultMapping.ResultMap.GetChildNode(ConfigurationScope configScope) +1570 IBatisNet.DataMapper.Configuration.ResultMapping.ResultMap.Initialize(ConfigurationScope configScope) +194 I’ve Googled around a bit and it seems the solution to this is making any members that need to be reflected public. This doesn’t really seem realistic – does anyone have any ideas? *From:* Michael McCurrey [mailto:mmccur...@gmail.com] *Sent:* Tuesday, July 28, 2009 7:29 PM *To:* user-cs@ibatis.apache.org *Subject:* Re: Medium Trust Environments What type of ado.net driver are you using? On Tue, Jul 28, 2009 at 4:08 PM, Erin Rollenhagen e...@entrepreneurialtechnologies.com wrote: Hi Everyone, I know I’ve brought this up before but I don’t think there was ever an answer…I got around it at the time by switching from a GoDaddy account to a HostMySite account that was running in a higher-trust environment. Now my host has sent out an email saying that they’re switching to medium trust in a week. I decided to test this out by setting the trust level to medium in my application, and sure enough, my ibatis calls no longer work. I’ve tried marking the EntrepreneurialTechnologies.DatabaseHelper class (which calls Ibatis) with the AllowPartiallyTrustedCallers attribute and signing it, but to no avail. I still get the security exception. What I’d like to know is if this is something that just cannot be done, if Ibatis is fundamentally incompatible with medium-trust environments, or if there is a way to configure things so that it will run in medium trust. Does anyone have this working currently? If this is something obvious that I am not getting about how medium trust works, please forgive me. I’ve never had to deal with this much before. Any and all guidance is appreciated. Here is the stack trace: [SecurityException: That assembly does not allow partially trusted callers.] EntrepreneurialTechnologies.DatabaseHelper.SelectMapperClient.selectList(String selectName, Object params) +0 ET.IowaChiropracticSociety.HomePageBannerService.getActive() +82 _DefaultPage.Page_Load(Object sender, EventArgs e) +308 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Adapters.ControlAdapter.OnLoad(EventArgs e) +15 System.Web.UI.Control.LoadRecursive() +8683053 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean
Re: Medium Trust Environments
What type of ado.net driver are you using? On Tue, Jul 28, 2009 at 4:08 PM, Erin Rollenhagen e...@entrepreneurialtechnologies.com wrote: Hi Everyone, I know I’ve brought this up before but I don’t think there was ever an answer…I got around it at the time by switching from a GoDaddy account to a HostMySite account that was running in a higher-trust environment. Now my host has sent out an email saying that they’re switching to medium trust in a week. I decided to test this out by setting the trust level to medium in my application, and sure enough, my ibatis calls no longer work. I’ve tried marking the EntrepreneurialTechnologies.DatabaseHelper class (which calls Ibatis) with the AllowPartiallyTrustedCallers attribute and signing it, but to no avail. I still get the security exception. What I’d like to know is if this is something that just cannot be done, if Ibatis is fundamentally incompatible with medium-trust environments, or if there is a way to configure things so that it will run in medium trust. Does anyone have this working currently? If this is something obvious that I am not getting about how medium trust works, please forgive me. I’ve never had to deal with this much before. Any and all guidance is appreciated. Here is the stack trace: [SecurityException: That assembly does not allow partially trusted callers.] EntrepreneurialTechnologies.DatabaseHelper.SelectMapperClient.selectList(String selectName, Object params) +0 ET.IowaChiropracticSociety.HomePageBannerService.getActive() +82 _DefaultPage.Page_Load(Object sender, EventArgs e) +308 System.Web.UI.Control.OnLoad(EventArgs e) +99 System.Web.UI.Adapters.ControlAdapter.OnLoad(EventArgs e) +15 System.Web.UI.Control.LoadRecursive() +8683053 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242 System.Web.UI.Page.ProcessRequest() +80 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 System.Web.UI.Page.ProcessRequest(HttpContext context) +49 ASP.default_aspx.ProcessRequest(HttpContext context) +37 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean completedSynchronously) +75 Thanks! *Erin Rollenhagen* Entrepreneurial Technologies 12257 University Avenue, Suite 200 Clive, Iowa 50325 515.440.1242 e...@entretechno.com http://www.entretechno.com -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: RE : Re: Reuse of statement in an other statement
You can't have your statement pass a dynamic parameter to that; however, you can 'catch' statement parameters in your sql fragment. For example: sql id=Fragment insert into MySuperTable(Column1) values(#MyVariable,type=String,dbType=VarChar#) /sql On Fri, Jul 10, 2009 at 9:57 AM, Régis BRULEY re...@bruley.org wrote: Hi, Test that's help. I saw this include. But can i pass a parameter in it ? It seems note working... Thanks again Régis Le 10 juil. 2009, 6:09 PM, Michael McCurrey mmccur...@gmail.com a écrit : You can, but not directly in how you have it. IBatis includes a feature called fragements. In your map file, put your *core* sql in a statement such as sql id=Fragment insert something /sql Then down in your real insert statement reference it as such: insert id=test include refid=Fragment/include /insert Does this help? On Fri, Jul 10, 2009 at 8:19 AM, Régis BRULEY re...@bruley.org wrote: Hi, It's my first... -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/ -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Is iBatis a good option nowadays ???
iBatis is definitely a viable choice. There are many companies using it and it supports both normalized and non normalized scenarios. On Sun, Jun 28, 2009 at 11:32 PM, Marcelo de Oliveira olivert...@terra.com.br wrote: Hi everybody, I would like to know if iBatis is nowadays a reliable software. I was reading an article about ibatis.Net DataMapper 1.6.1 and it covers only some points of the application. It seems to be a great product, but I am reading a little time this list and see that this product don’t have a new version some time. So, is possible to use that without problems ? iBatis do whatever we need in database access ? I will use basic access to tables, using basic queries, stored procedures, sometimes using transaction. I will have all crud queries and specific queries for some tables. I would appreciate if anybody else from this list answer my doubts. Regards, Marcelo. -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Next Release
We use it constantly, the 'existing' build actually does compile; it's one of the unit tests that doesn't work. I have it ported to iBatis 3.X; but I don't have it up to their coding style yet and since iBatis 3.X isn't even beta I don't think the Castle group would take it. On Wed, Jun 24, 2009 at 8:33 PM, Ron Grabowski rongrabow...@yahoo.comwrote: The IBatisNetFacility for Castle isn't really being maintained anymore. Its not part of their build. It shouldn't require a lot of effort to freshen it up. -- *From:* Michael McCurrey mmccur...@gmail.com *To:* user-cs@ibatis.apache.org *Sent:* Wednesday, June 24, 2009 1:04:14 PM *Subject:* Re: Next Release It can be looked at, however, I would recommend looking at the Castle facility for iBatis. It provides you with this functionality 'today'. On Wed, Jun 24, 2009 at 9:52 AM, Rafi Ghazarian rghazar...@privateaccess.com wrote: BTW, my company and I depend heavily on iBatis.NET thanks for your efforts. Regarding new release features, any plans to support nested transactions? Thanks, Rafi *From:* Michael McCurrey [mailto:mmccur...@gmail.com] *Sent:* Monday, June 22, 2009 6:29 AM *To:* user-cs@ibatis.apache.org *Subject:* Next Release Ok folks, I'd like to plan the next release of iBatis and would like to know What do you want? I would like to make a few small releases to bridge the 1.X line the existing 3.X line due to the number of breaking changes in the 3.X line. Some things I want to do for 'just me' are: 1. Feature match the Java version 2. Fix an annoying list non lazy load bug 3. Rev to my Castle.DynamicProxy2 patch 4. Expose a QueryForDataTable 5. Drop .net 1.X compatibility. 6. Lastly, I would like something ambitious like Orin's Binsor for Castle on the configuration front. -- Michael -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/ -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Next Release
Ok folks, I'd like to plan the next release of iBatis and would like to know What do you want? I would like to make a few small releases to bridge the 1.X line the existing 3.X line due to the number of breaking changes in the 3.X line. Some things I want to do for 'just me' are: 1. Feature match the Java version 2. Fix an annoying list non lazy load bug 3. Rev to my Castle.DynamicProxy2 patch 4. Expose a QueryForDataTable 5. Drop .net 1.X compatibility. 6. Lastly, I would like something ambitious like Orin's Binsor for Castle on the configuration front. -- Michael
Re: Next Release
I would like to first make changes to the 1.X line so as to 'air it out' and make it current for those using it on the 3.X line of .net as well as to solidify 3.X What I'd like to avoid with iBatis is a one time 'big hit'. I don't have a java feature list yet, I planned on doing it this week. I like *all* of your suggestions, and would like to include them. One feature most folks don't know about is that you can use anonymous types for both results parameter classes... This should be documented. On Mon, Jun 22, 2009 at 7:58 AM, Michael Schall mike.sch...@gmail.comwrote: First... Welcome Michael! I'm excited to have some fresh blood on the project. Sounds like you are ready to jump in. Are you planning on making changes to the 1.x line, or are you planning all this work in the 3.x line? Is your goal backward compatibility or a 1.x release marking breaks as deprecated? Do you have list of Java features you are suggesting? My list: Upgrade to nUnit 2.5 (breaking changes) Include nUnit in externals-bin and reference it there so we control what version is used and it is consistent Allow for a nullable column(s) check to see if an object is even created for N+1 selects Allow for a column prefix when defining groupBy and resultMap so you can reuse resultMaps Mike On Mon, Jun 22, 2009 at 8:28 AM, Michael McCurrey mmccur...@gmail.comwrote: Ok folks, I'd like to plan the next release of iBatis and would like to know What do you want? I would like to make a few small releases to bridge the 1.X line the existing 3.X line due to the number of breaking changes in the 3.X line. Some things I want to do for 'just me' are: 1. Feature match the Java version 2. Fix an annoying list non lazy load bug 3. Rev to my Castle.DynamicProxy2 patch 4. Expose a QueryForDataTable 5. Drop .net 1.X compatibility. 6. Lastly, I would like something ambitious like Orin's Binsor for Castle on the configuration front. -- Michael -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: Next Release
I like this idea. I run into this problem quite often myself. A Binsor typish port wouldn't solve this, but this wouldn't be hard to do via a build-event check. On Mon, Jun 22, 2009 at 7:16 AM, Tom Kise t...@ementor.dk wrote: Hi Michael We have a wish for compile time check against type safety, as IBatis today will fail runtime only, if there is an error in the XML-files. It could be that is what you want to have a look at regarding number 6 on your list, but I’m not sure? Best regards *TOM KISE *:// MANAGER / DEVELOPMENT 1 / *EMENTOR DANMARK A/S *:// LAUTRUPVANG 12 / DK-2750 BALLERUP / T :// +45 70 222 770 / M :// +45 72 208 194 / F :// +45 70 222 768 / MAIL :// tom.k...@ementor.dk tom.k...@ementor.dk/ EMENTOR.DK http://www.ementor.dk *From:* Michael McCurrey [mailto:mmccur...@gmail.com] *Sent:* 22. juni 2009 15:29 *To:* user-cs@ibatis.apache.org *Subject:* Next Release Ok folks, I'd like to plan the next release of iBatis and would like to know What do you want? I would like to make a few small releases to bridge the 1.X line the existing 3.X line due to the number of breaking changes in the 3.X line. Some things I want to do for 'just me' are: 1. Feature match the Java version 2. Fix an annoying list non lazy load bug 3. Rev to my Castle.DynamicProxy2 patch 4. Expose a QueryForDataTable 5. Drop .net 1.X compatibility. 6. Lastly, I would like something ambitious like Orin's Binsor for Castle on the configuration front. -- Michael -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: [NOMINATION/VOTE] New iBATIS.NET Committer Team Members
Faxed mine over this morning. On Sat, Jun 13, 2009 at 8:08 PM, Clinton Begin clinton.be...@gmail.comwrote: Or ICLA rather... here's the link in case it was lost in the shuffle of emails: http://www.apache.org/licenses/icla.pdf Clinton On Sat, Jun 13, 2009 at 9:08 PM, Clinton Begin clinton.be...@gmail.comwrote: Have you all filed your ACLAs? Let me know, and I'll submit the request to create your accounts. Clinton On Sat, Jun 13, 2009 at 8:55 PM, Michael McCurrey mmccur...@gmail.comwrote: Any movement on this at all? On Tue, Jun 2, 2009 at 8:18 AM, Clinton Begin clinton.be...@gmail.comwrote: Hi all, Based on these votes, I'm going to propose to the iBATIS PMC that the following two committers join Michael Schall and Ron Grabowski as committers on the Apache iBATIS.NET project. * Michael McCurrey * Sal Bass The next steps for these two are: * File an ICLA * I'll raise the vote on the iBATIS PMC list right now (a required formality, but I can't see it failing) As soon as both are done, I can create accounts. NOTE: If you did not make it, then don't give up! We want to create the team that can continue to build the team. Keep contributing and working with these two guys, and I'm sure you'll be next in line. Cheers, Clinton On Mon, Jun 1, 2009 at 1:16 PM, Michael McCurrey mmccur...@gmail.comwrote: I think Clinton was going to tally it up. On Mon, Jun 1, 2009 at 12:13 PM, Yaojian sky...@gmail.com wrote: Any progress? -- Michael J. McCurrey Read with me at http://www.mccurrey.com -- Michael J. McCurrey Read with me at http://www.mccurrey.com -- Michael J. McCurrey Read with me at http://www.mccurrey.com http://chaoticmindramblings.blogspot.com/
Re: [NOMINATION/VOTE] New iBATIS.NET Committer Team Members
Any movement on this at all? On Tue, Jun 2, 2009 at 8:18 AM, Clinton Begin clinton.be...@gmail.comwrote: Hi all, Based on these votes, I'm going to propose to the iBATIS PMC that the following two committers join Michael Schall and Ron Grabowski as committers on the Apache iBATIS.NET project. * Michael McCurrey * Sal Bass The next steps for these two are: * File an ICLA * I'll raise the vote on the iBATIS PMC list right now (a required formality, but I can't see it failing) As soon as both are done, I can create accounts. NOTE: If you did not make it, then don't give up! We want to create the team that can continue to build the team. Keep contributing and working with these two guys, and I'm sure you'll be next in line. Cheers, Clinton On Mon, Jun 1, 2009 at 1:16 PM, Michael McCurrey mmccur...@gmail.comwrote: I think Clinton was going to tally it up. On Mon, Jun 1, 2009 at 12:13 PM, Yaojian sky...@gmail.com wrote: Any progress? -- Michael J. McCurrey Read with me at http://www.mccurrey.com -- Michael J. McCurrey Read with me at http://www.mccurrey.com
Castle.DynamicProxy2
So, I had some spare time last night and wanted to see how difficult it would be to port iBatisNet 1.6.2 to use Castle.DynamicProxy2 instead of Castle.DynamicProxy. I needed this for my own purposes as I don't like having to cart around both dlls. I managed to port it and in addition remove the CachedProxyGenerator class ( and a couple others) because DynamicProxy2 seems to do its own TypeCaching. It works and all the nunit tests pass. I haven't done any timing tests yet to test performance. It seems DynamicProxy2 comes with a partner dll called Castle.Core which I think could be ILmerged in. Is anybody interested in this? If so, I don't have committer status yet and could forward the changeset to somebody else that does.
Re: Castle.DynamicProxy2
not yet. On Wed, Jun 10, 2009 at 1:11 PM, Yaojian sky...@gmail.com wrote: Still not a committer? On Wed, Jun 10, 2009 at 11:05 PM, Michael McCurrey mmccur...@gmail.comwrote: So, I had some spare time last night and wanted to see how difficult it would be to port iBatisNet 1.6.2 to use Castle.DynamicProxy2 instead of Castle.DynamicProxy. I needed this for my own purposes as I don't like having to cart around both dlls. I managed to port it and in addition remove the CachedProxyGenerator class ( and a couple others) because DynamicProxy2 seems to do its own TypeCaching. It works and all the nunit tests pass. I haven't done any timing tests yet to test performance. It seems DynamicProxy2 comes with a partner dll called Castle.Core which I think could be ILmerged in. Is anybody interested in this? If so, I don't have committer status yet and could forward the changeset to somebody else that does. -- Michael J. McCurrey Read with me at http://www.mccurrey.com
Re: Ibatis.Net - A Call to Arms
Are there 3 committers still active to vote? On Sat, May 30, 2009 at 9:51 AM, Clinton Begin clinton.be...@gmail.comwrote: +1. I've always said, the committers can only make betas. The community has to tell us when it's GA worthy. Clinton On Sat, May 30, 2009 at 6:05 AM, Ted Husted hus...@apache.org wrote: If it works for you, start a vote on the dev list. Anyone can vote, but for the vote to pass we need three +1s from PMCs members (and more binding +1s than -1s). Participating in the testing and the voting is a great way to get involved in the project. HTH, Ted. On Thu, May 28, 2009 at 10:12 AM, Yaojian sky...@gmail.com wrote: I think the 1.6.2 beta version is quite stable, make it GA as soon as posible is a signal that indicates the project is still active. Since someone in this user group said he uses V3 release in a production enviorment and it works fine, I suggest to public the current V3 branch with some document, espically the changes from V1.x, will get more testers for V3. iBatis.NET is a great software. It's happy to see the hope of moving on again. Yaojian -- Michael J. McCurrey Read with me at http://www.mccurrey.com
Re: IBATIS.NET - V3- Gets the IDataMapper from an IMapperFactory looks very strange
AWESOME On Mon, Jun 1, 2009 at 5:08 AM, Yaojian sky...@gmail.com wrote: I guess the original idea is allow a user to customize the IDataMapper implementation class. But the DefaultConfigurationEngine instantiate the DataMapper instance in a non-virtual method. If we can add a DataMapperClass property in the ConfigurationSetting class, such as the ConfigurationSetting.SessionFactory does, we can make this work. By the way, I wrote some notes about the V3 configuration process: http://sites.google.com/site/ibatisnetinside/Home/DataMapperConfiguring On Mon, Jun 1, 2009 at 7:24 PM, Michael McCurrey mmccur...@gmail.comwrote: I have no clue. I'm still wresting with with large scale changes between 1 and 3. On Mon, Jun 1, 2009 at 1:19 AM, Yaojian sky...@gmail.com wrote: The Apache.Ibatis.DataMapper.DefaultMapperFactory does not implement the IMapperFactory.GetMapperTInterface(); so the only way AFAIK to get the IDataMapper is to use a type cast as: IMapperFactory mapperFactory = configurationEngine.BuildMapperFactory(); IDataMapper dataMapper = ((IDataMapperAccessor)mapperFactory).DataMapper; //since GetInterfaceT has not been implemented. Any one have idea about what the GetInterfaceT intend to be? -- Michael J. McCurrey Read with me at http://www.mccurrey.com -- Michael J. McCurrey Read with me at http://www.mccurrey.com
Re: [NOMINATION/VOTE] New iBATIS.NET Committer Team Members
I think Clinton was going to tally it up. On Mon, Jun 1, 2009 at 12:13 PM, Yaojian sky...@gmail.com wrote: Any progress? -- Michael J. McCurrey Read with me at http://www.mccurrey.com
Re: Dirty Tracking Issue
Elegant solution! For flexibility, It would be nice to do this either on a object alias basis or on a resultmap basis in the ibatis source. On Fri, May 29, 2009 at 9:08 AM, Yaojian sky...@gmail.com wrote: I have a new solution based on a custom ISetAccessor rather than the IObjectFactory. As the IBatisNet use ISetAccessor to set the value of a property, we can use a custom ISetAccessor saves the IsDirty state before actually set the property value and restore it later. I attach the unit test. Hope it works for you. On Fri, May 29, 2009 at 11:45 PM, Sal Bass salbass...@hotmail.com wrote: I am using auto properties. I have toyed with ibatis constructor loading, but because I have never used it on a production app with Ibatis I have been hesitant. I may have to resort to using standard properties and go with Yaojin's solution, or your constructor solution. I have been trying to avoid both of these but there is no other waythat I can think of. Date: Fri, 29 May 2009 08:35:46 -0700 Subject: Re: Dirty Tracking Issue From: mmccur...@gmail.com To: user-cs@ibatis.apache.org Are you in a situation where you can't use constructor loading of your objects? If your not using auto-properties (which it seems your not), this might solve your problem entirely. On Fri, May 29, 2009 at 8:32 AM, Yaojian wrote: That is my mistake, the nested objects loaded from the database is not touched so they remains its dirty state set by AOP. I think the simplest solution is to map a column to a field instead of a property. for example, a C# property: private string m_Name; public String Name { get { return m_Name; } set { m_Name = value; } } we can map the column Name to the m_Name field rather than the Name property in SqlMap: So load object from DB will not fire the dirty tracking injiected by AOP. On Fri, May 29, 2009 at 9:19 PM, Sal Bass wrote: Yaojian, Thanks! I am still confused though. When I make a call to QueryForObject and reset the IsLoading flag to false, that only sets it false for the root object. All complex property collections that are loaded at the same time will not be reset. Am I missing something obvious? Date: Fri, 29 May 2009 03:52:58 +0800 Subject: Re: Dirty Tracking Issue From: sky...@gmail.com To: user-cs@ibatis.apache.org If the non-root object is loaded from the database, it should be created with the new object factory. otherwise, it is irrelavant with 'dirty'. Bellow is my code for using IObjectFactory, I use a custom IObjectFactory for attaching each object to a context variable. DomSqlMapBuilder builder = CreateDomSqlMapBuilder(); //Use SqmObjectFactory for attaching objects to the current IObjectContext IObjectFactory originalFactory = new ObjectFactory(true); SqmObjectFactory contextableFactory = new SqmObjectFactory(originalFactory); builder.ObjectFactory = contextableFactory; ISqlMapper sqlMapper = builder.Configure(m_SqlMapDocument); -- /// Represents the factory of MDA persistent object used by IBatis.NET. /// attaches an /// to each objects created with this factory. public class SqmObjectFactory : IObjectFactory, IEntityContextBindable { /// Creates an instance. /// The original . public SqmObjectFactory(IObjectFactory objectFactoryImpl) { if (objectFactoryImpl == null) throw new ArgumentNullException(objectFactoryImpl); m_ObjectFactoryImpl = objectFactoryImpl; } private readonly IObjectFactory m_ObjectFactoryImpl; private IEntityContext m_EntityContext; public IEntityContext EntityContext { get { return m_EntityContext; } set { m_EntityContext = value; } } /// . public IFactory CreateFactory(Type typeToCreate, Type[] types) { IFactory result = m_ObjectFactoryImpl.CreateFactory(typeToCreate, types); if (typeof(IEntityContextBindable).IsAssignableFrom(typeToCreate)) { return new SqmFactory(this, result); } return result; } private class SqmFactory : IFactory { public SqmFactory(IEntityContextBindable objectContextable, IFactory factory) { if (objectContextable == null) throw new ArgumentNullException(objectContextable); if (factory == null) throw new ArgumentNullException(factory); m_ObjectContextable = objectContextable; m_Factory = factory; } private readonly IEntityContextBindable m_ObjectContextable; private readonly IFactory m_Factory; public object CreateInstance(object[] parameters) {
Re: Ibatis.Net - A Call to Arms
I agree with releasing 1.6.2 asap; it's stable. On Thu, May 28, 2009 at 7:12 AM, Yaojian sky...@gmail.com wrote: I think the 1.6.2 beta version is quite stable, make it GA as soon as posible is a signal that indicates the project is still active. Since someone in this user group said he uses V3 release in a production enviorment and it works fine, I suggest to public the current V3 branch with some document, espically the changes from V1.x, will get more testers for V3. iBatis.NET is a great software. It's happy to see the hope of moving on again. Yaojian On Thu, May 28, 2009 at 9:03 PM, Nicholas L. Piasecki nicho...@piasecki.name wrote: As a long time user of iBATIS.NET, I pretty much agree with everything that Rob has said here--though as a user of Castle NVelocity, I would recommend not touching that particular project with a 64-foot pole; I would be concerned with iBATIS.NET acquiring that dependency if it hasn't already. It's a great templating language, but the implementation is not healthy. I also imagine that it would limit iBATIS.NET's evolution options in the future, such as precluding the ability to pre-generate code files instead of inspecting an XML configuration at start up. As iBATIS.NET evolves, it would be nice if it continued to grow into the .NET idioms as Rob has enumerated here--things like enrolling in System.Transaction, using the built-in connectionStrings in the app.config configuration, heck, even using the standard configuration classes at all. This would at least help to eliminate the necessity of providers.config, which has always seemed a bit odd to me. My only real hangup is that it'd be nice if these major feature changes occurred in a branch that obviously contains breaking changes--e.g., 3.0--and not munging them together with existing maintenance 2.x branch. (The Castle project, MonoRail especially, has been in Release Candidate mode for seemingly its entire life, and the only way to get important bug fixes is to track the trunk and upgrade along with all of its new features, which is insane.) My two cents. My thanks to the community for all the hard work! V/R, Nicholas Piasecki Software Developer Skiviez, Inc. n...@skiviez.com 804-550-9406 -- Michael J. McCurrey Read with me at http://www.mccurrey.com
Re: Ibatis.Net - A Call to Arms
I should have clarified.. .net framework 1.x On Thu, May 28, 2009 at 7:36 AM, Juan Pablo Araya juanpablo.ar...@gmail.com wrote: With framework 1 or iBatis 1.x? at this moment, a half of the projects where I work user iBatis 1.6 for the datamapper, but through framework 3.5. On Thu, May 28, 2009 at 10:20 AM, Michael McCurrey mmccur...@gmail.comwrote: Is anybody here *actively* developing any .net 1.X software with iBatis.net? I would hope not. On Thu, May 28, 2009 at 7:20 AM, Michael McCurrey mmccur...@gmail.comwrote: I agree with releasing 1.6.2 asap; it's stable. On Thu, May 28, 2009 at 7:12 AM, Yaojian sky...@gmail.com wrote: I think the 1.6.2 beta version is quite stable, make it GA as soon as posible is a signal that indicates the project is still active. Since someone in this user group said he uses V3 release in a production enviorment and it works fine, I suggest to public the current V3 branch with some document, espically the changes from V1.x, will get more testers for V3. iBatis.NET is a great software. It's happy to see the hope of moving on again. Yaojian On Thu, May 28, 2009 at 9:03 PM, Nicholas L. Piasecki nicho...@piasecki.name wrote: As a long time user of iBATIS.NET, I pretty much agree with everything that Rob has said here--though as a user of Castle NVelocity, I would recommend not touching that particular project with a 64-foot pole; I would be concerned with iBATIS.NET acquiring that dependency if it hasn't already. It's a great templating language, but the implementation is not healthy. I also imagine that it would limit iBATIS.NET's evolution options in the future, such as precluding the ability to pre-generate code files instead of inspecting an XML configuration at start up. As iBATIS.NET evolves, it would be nice if it continued to grow into the .NET idioms as Rob has enumerated here--things like enrolling in System.Transaction, using the built-in connectionStrings in the app.config configuration, heck, even using the standard configuration classes at all. This would at least help to eliminate the necessity of providers.config, which has always seemed a bit odd to me. My only real hangup is that it'd be nice if these major feature changes occurred in a branch that obviously contains breaking changes--e.g., 3.0--and not munging them together with existing maintenance 2.x branch. (The Castle project, MonoRail especially, has been in Release Candidate mode for seemingly its entire life, and the only way to get important bug fixes is to track the trunk and upgrade along with all of its new features, which is insane.) My two cents. My thanks to the community for all the hard work! V/R, Nicholas Piasecki Software Developer Skiviez, Inc. n...@skiviez.com 804-550-9406 -- Michael J. McCurrey Read with me at http://www.mccurrey.com -- Michael J. McCurrey Read with me at http://www.mccurrey.com -- Michael J. McCurrey Read with me at http://www.mccurrey.com
RE: [NOMINATION/VOTE] New iBATIS.NET Committer Team Members
I'd like to nominate myself for Committer. I've used Ibatis in both Java .net forms for a long time and feel I can contribute directly. I'd really like to also focus on moving the current production iBatis line to support DynamicProxy 2 rather than the old 1 version.
RE: New Release For .NET?
We are looking to migrade to V3 soon on our side as well. I have been doing some prelimnary work on migrating the Castle iBatis facility to work with the V3 of IBatis.NET. Has anybody else been doing the same? I'd hate to do duplicate work. From: Gilles Bayon [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2008 11:53 PM To: user-cs@ibatis.apache.org Subject: Re: New Release For .NET? me too, :-) On Mon, Oct 27, 2008 at 11:54 PM, Vincent Apesa [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: I've been running the v3 build in a production environment for around two months and haven't seen any problems. It seems pretty stable. - Original Message - From: Clinton Beginmailto:[EMAIL PROTECTED] To: user-cs@ibatis.apache.orgmailto:user-cs@ibatis.apache.org Sent: Monday, October 27, 2008 4:07 PM Subject: Re: New Release For .NET? Funny, I'm committing the most right now on the Java side, and often I feel like I'm trying to keep up with Gilles! :-) I think the .NET release will arrive before the Java counterpart. Race ya! Cheers, Clinton On Mon, Oct 27, 2008 at 1:54 PM, Sal Bass [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: Lol. Thanks. I know how annoying this sort of question isjust checking to see if there is still life out there. ;-) Now that I have your attention, is soon pre-2009? (Bullet-proof vest on). Date: Mon, 27 Oct 2008 20:37:56 +0100 From: ibatis.nethttp://ibatis.net/@gmail.comhttp://gmail.com/ To: user-cs@ibatis.apache.orgmailto:user-cs@ibatis.apache.org Subject: Re: New Release For .NET? soon. Cheers, Gilles Store, manage and share up to 5GB with Windows Live SkyDrive. Start uploading nowhttp://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008 -- Cheers, Gilles Join my network on LinkedIn http://www.linkedin.com/in/sellig
RE: Next Release?
Thats very good to hear as we are in the midst of a largescale migration from 'homegrown' to iBatis.net From: Clinton Begin [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2008 7:48 AM To: user-cs@ibatis.apache.org Subject: Re: Next Release? Hi Sal, I'm the lead developer of iBATIS for Java and the original creator of iBATIS. I don't think you have anything to worry about, as I believe that iBATIS.NET has a bright future and will possibly even surpass the success we've seen on the Java side. iBATIS for Java has a lot more competition with products like Hibernate and Spring JDBC as serious competitors. Furthermore, Java application best practices are more compatible with typical ORM solutions like Hibernate. In the .NET world, there are very few ORM options (NHibernate, LINQ to SQL...), but more importantly a lot of .NET project consider stored procedures to be a best practice. Since day one, iBATIS has supported stored procedures as a first class feature. While ORM tools may be compatible, they certainly weren't designed with that as a primary goal. In fact, it doesn't even make a lot of sense to map a representation of state (a class) to a behavior (a function or procedure). iBATIS handles this by design, as a core consideration. One reason you might not see a lot of activity on the development side for .NET is that it was more feature rich than iBATIS for Java out of the gate. Gilles did a great job porting the framework, but also introducing a number of new features that iBATIS for Java still doesn't have. So naturally, for the last while you've probably only seen bug fixes and the odd feature. In my opinion, this is a great success of iBATIS. Our software has survived the test of time and continues to be chosen over the competition with very few changes. We aren't running a race or trying to keep up with any artificial specifications. We just continue to do what we do, and do it well. That said, both Gilles and I (and the rest of the team) are working on version 3 of the .NET and Java versions respectively. With the introduction of C# 3 and with greater adoption of Java 5 (finally), we are now able to leverage some of the cool new features they offer. So worry not. iBATIS has been around for 6 years now, it's not going anywhere. :-) Cheers, Clinton On Fri, May 30, 2008 at 7:52 AM, Sal Bass [EMAIL PROTECTED] wrote: I was just wondering when we can expect the next major release of Ibatis.NET? I was also curious to know if there is a definite future for Ibatis.NET, as it seems development is much more active on the Java front. I want to bring Ibatis into our organization, but the CTO has concerns on whether .NET releases will be supported and active for the foreseeable future. E-mail for the greater good. Join the i'm Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_+Greate rGood
RE: problem with update sql generation
Giles, How far out do you anticipate V3 being? From: Gilles Bayon [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 13, 2008 11:59 AM To: user-cs@ibatis.apache.org Subject: Re: problem with update sql generation It's certainly a bug but sql generation in this version is a bit experimental. It will improve in the next major version, V3. -- Cheers, Gilles
TransactionScope
There seems to be an issue with the TransactionScope class I have 2 seperate dao managers, both of type SqlMap. When using 2 non-SQL map it works fine. {DaoProxy : unable to intercept method name 'Save', cause : The operation is not valid for the state of the transaction.} System.Exception {IBatisNet.DataAccess.Exceptions.DataAccessException} DataAccess 1.9.1 DataMapper 1.6.1 Michael J. McCurrey USA Digital Solutions, Inc. 602.866.8199 - The scientific name for an animal that doesn't either run from or fight its enemies is lunch. From: Paul Sullivan [mailto:[EMAIL PROTECTED] Sent: Thursday, March 22, 2007 2:14 PM To: user-cs@ibatis.apache.org Subject: Library list db2 Has anyone used connection string library list for db2? We can't seem to get it working and have only found information stating we can't use library list with db2. We'd appreciate any examples if somebody has used this successfully. Thanks.
RE: [VOTE] Promote DataAccess V1.9.1 and DataMapper V1.6.1 to General Availability
We've been using it in our project without incident. +1 Michael J. McCurrey USA Digital Solutions, Inc. 602.866.8199 - The scientific name for an animal that doesn't either run from or fight its enemies is lunch. From: Gilles Bayon [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 21, 2007 10:03 AM To: dev@ibatis.apache.org; user-cs@ibatis.apache.org; [EMAIL PROTECTED] Subject: [VOTE] Promote DataAccess V1.9.1 and DataMapper V1.6.1 to General Availability Hi All, Sorry for the delay in calling the vote - lot of works ... preparing to changing job :) Since there have been no major issues reported , I propose that we promote DataAccess V1.9.1 and DataMapper V1.6.1 to GA status. I'm +1. Cheers, - Gilles
Embedded SqlMap.config
Is it possible to use a DLL embedded SqlMap.config file through the DataAccess portion of IBatis.net? I have moved the file to be a resource, and everything works just fine. However, switching to embedded I receive the following error: - The error occurred while configure DaoSessionHandler. - The error occurred in property name=embedded value=CoreDBSqlMap.config, Model xmlns=http://ibatis.apache.org/dataAccess; /. - Check the IBatisNet.DataAccess.DaoSessionHandlers.SqlMapDaoSessionHandler. I have my Dao configuration file set as: daoSessionHandler id=SqlMap property name=embedded value=CoreDBSqlMap.config, Model/ /daoSessionHandler Where Model is the name of the DLL project and CoreDBSqlMap.config is set to the root of the project. Michael J. McCurrey USA Digital Solutions, Inc. 602.866.8199 - The scientific name for an animal that doesn't either run from or fight its enemies is lunch.