ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Williams" <kev...@ecollege.com>
Subject RE: Newbie trouble
Date Thu, 23 Mar 2006 14:32:10 GMT
I'm using the 1.3.0 beta binaries from the web site. Actually, I'm using the binaries included
in the latest Castle.msi, which claim to be 1.3.0. 

-----Original Message-----
From: Ron Grabowski [mailto:rongrabowski@yahoo.com] 
Sent: Wednesday, March 22, 2006 8:46 PM
To: user-cs@ibatis.apache.org
Subject: Re: Newbie trouble

Are you using the binaries from the website or the head from SVN?
Gilles has been working on some massive speed improvements for instanciating result classes
and setting their properties using IL instead of reflection.

--- Chad Humphries <chad.humphries@gmail.com> wrote:

> Kevin,
> 
> I ran through the first part, Ron was the hero on this one :)
> 
> -Chad
> 
> On Mar 22, 2006, at 12:02 PM, Kevin Williams wrote:
> 
> > I gave up on NPetShop as it seems to be out of date.
> >
> > Chad Humphries found my error for me - I needed to specify either 
> > "column" or "columnIndex" on my <resultMap> -> <result> entities.
> > Without that the default columnIndex is -999999.
> >
> > I must say I'm impressed with the speed so far. Yes it's a simple 
> > test, but I put together a simple web app using MonoRail with the 
> > NVelocity view engine and the IBatisNet IoC facility. I set up the
> 
> > PaginationHelper to be 5 per page, and the pages seem to come back
> 
> > instantly. I don't know if there is any caching going on or what (I
>  
> > didn't specify any in my configs) but I'm impressed. I'll try 
> > something a bit bigger and see if the speed holds up.
> >
> > Thanks Chad!
> >
> > From: 徐文亮 [mailto:wenliang.xu@gmail.com]
> > Sent: Tuesday, March 21, 2006 6:08 PM
> > To: user-cs@ibatis.apache.org
> > Subject: Re: Newbie trouble
> >
> > Can you run NPetShop now?
> >
> > 2006/3/22, Kevin Williams <kevinw@ecollege.com>:
> > Brian,
> >
> > Thanks for the tip. I had tried that, but it didn't work before.
> >
> > I tried to make things more generic by switching to using the SQL 
> > Server Northwind database, and of course now it works. :) There must 
> > have
> 
> > been
> > some rules about aliases or class names that I missed - that's all
> I
> > changed. OK, on to bigger and better problems.
> >
> > Thanks!
> >
> >
> > -----Original Message-----
> > From: Brian Elcock [mailto:brian.elcock@gmail.com]
> > Sent: Tuesday, March 21, 2006 11:21 AM
> > To: user-cs@ibatis.apache.org
> > Subject: Re: Newbie trouble
> >
> > Hello Kevin.
> >
> > I think the DTD changed a bit, depending on what version you're
> using
> > and what documentation you're looking at. Here's what I have at the
>  
> > top
> > of my SqlMap file:
> >
> > <sqlMap namespace="Product"
> >        xmlns="http://ibatis.apache.org/mapping"
> >        xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
> >
> > Try changing to something like that and see if it works.
> >
> > Brian
> >
> > On 3/21/06, Kevin Williams <kevinw@ecollege.com > wrote:
> > >
> > > I'm trying to test iBatis.Net but having all kinds of trouble. I
> 
> > can't
> >
> > > get past the config files, but every XML validator in the world
> says
> > > they are valid.
> > >
> > > Here's me SqlMap.config:
> > >
> > >
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > >
> > > <sqlMapConfig
> > >
> > > xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
> > >
> > > xsi:noNamespaceSchemaLocation="SqlMapConfig.xsd">
> > >
> > >
> > >
> > > <database>
> > >
> > > <provider name="sqlServer1.1 "/>
> > >
> > > <dataSource name="ProofOfConcept"
> > > connectionString="server=XXX;Database=XXX;User
> > ID=XXX;Password=XXX"/>
> > >
> > > </database>
> > >
> > > <sqlMaps>
> > >
> > > <sqlMap resource="Product.xml"/>
> > >
> > > </sqlMaps>
> > >
> > >
> > >
> > > </sqlMapConfig>
> > >
> > >
> > >
> > > Here is my Product.xml file:
> > >
> > >
> > >
> > > <?xml version="1.0" encoding="utf-8" ?>
> > >
> > > <sqlMap namespace="Product"
> > >
> > > xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
> > >
> > > <alias>
> > >
> > > <typeAlias alias="Product"
> > > type="ProofOfConcept.Product,ProofOfConcept" />
> > >
> > > </alias>
> > >
> > > <resultMaps>
> > >
> > > <resultMap id="productResult" class="Product">
> > >
> > > <result property="Name" column="NAME"/>
> > >
> > > <!-- about 10 properties -->
> > >
> > >
> > >
> > > </resultMap>
> > >
> > >
> > >
> > > </resultMaps>
> > >
> > > <statements>
> > >
> > > <procedure id="GetAll" parameterMap="productParam"
> > > resultMap="productResult">
> > >
> > > GetAllProducts
> > >
> > > </procedure>
> > >
> > > </statements>
> > >
> > > <parameterMaps>
> > >
> > > <parameterMap id="productParam" class="Product">
> > >
> > > <parameter property="Name" column="NAME" />
> > >
> > > </parameterMap>
> > >
> > > </parameterMaps>
> > >
> > > </sqlMap>
> > >
> > >
> > >
> > >
> > >
> > > I tried running NPetShop but it would just throw errors as well.
> How
> > > can I get a working example to build off of? I really don't want
> to
> > > use ADO.NET directly but I'm not allowed to run any dynamic SQL
> > -generating ORM tools.
> > > Please help!
> > >
> > >
> > >
> > > Cheers,
> > >
> > > Kevin
> >
> 
> 

Mime
View raw message