Re: Bizzare discriminator/submap problem

2005-05-25 Thread Geoff Chiang
I've done some further investigation and I think I've found the source of the problem. During the parsing of the sql maps, at the end of each resultmap, the discriminator held in the static Variables class is set for the just-ended resultmap (SqlMapParser:288). The thing is, the discriminator hel

Bizzare discriminator/submap problem

2005-05-25 Thread Geoff Chiang
I'm trying to take advantage of the new discriminator and submap tags and I've come across something that seems rather odd to me. Basically, the inheritence situation we have is that an AffiliateAccreditation class is a subclass of the Accreditation class. So the resultmaps look something like th

Re: ClobTypeHandlerCallback For Oracle 9i

2005-05-25 Thread Geoff Chiang
Ronn, are you using iBatis in combination with the Spring framework? I'm currently doing that successfully whilst still using the 9i drivers. Just now I tested the insertion of three clobs of over 32k characters and didn't see any reordering or exceptions. Geoff --- Ronn <[EMAIL PROTECTED]> wro

Re: R: Query performs differently in SQL Query Analyzer [SOLVED]

2005-05-25 Thread Abdullah Kauchali
Fabrizio Gianneschi wrote: The Microsoft JDBC driver for SQLServer is ***very*** buggy. We haven't had any serious performance problems with MS JDBC. Could this be the nvarchar unicode issue? http://groups.google.co.za/group/microsoft.public.sqlserver.jdbcdriver/browse_thread/thread/c11b5

Re: ClobTypeHandlerCallback For Oracle 9i

2005-05-25 Thread Brandon Goodin
from what i've heard around here. you should be using the 10g driver. It works with 9i and functions better. Brandon On 5/24/05, Ronn <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to insert clobs into Oracle 9i with Oracle 10g JDBC drivers. > The problems I'm facing are: > > 1) Tried using i

ResultMap ClassCastException

2005-05-25 Thread McCORMICK, Paul
Title: ResultMap ClassCastException I am attempting to run a simple query and use a resultMap within a resultMap.  I end up with a ClassCastException below.  Do you know what I'm doing wrong?           

Re: ClobTypeHandlerCallback For Oracle 9i

2005-05-25 Thread Ronn
Hi, I am trying to insert clobs into Oracle 9i with Oracle 10g JDBC drivers. The problems I'm facing are: 1) Tried using iBatis ClobTypeHandlerCallback, but encountered error of unable to setString with > 32K 2) Override ClobTypeHandlerCallback's setParameter to remove the last line //setter.set

Re: [HELP] I can't not type < sign in my sqlmap xml file

2005-05-25 Thread Clinton Begin
A while back, we had discussed the possiblility of pluggable scripting engines.   Of course, XML based dyna SQL would always be "enabled", but we could allow for 3rd party parsing of the resulting SQL.  I don't think it would be hard (the biggest problem might be the conflict of certain key charac

Re: [HELP] Ibatis properties with oscache

2005-05-25 Thread Kris Jenkins
Hey-ho, The answer to the first question's easy: new GeneralCacheAdministrator( properties ); As for thoughts on the second one...well, the element already supports nested elements as setters. Perhaps it could try and pass the properties as a Properties object instead, iff there's an a

Re: [HELP] Ibatis properties with oscache

2005-05-25 Thread Marco Berri
Hi all! I'm looking for a way to set properties by run-time: does anybody know if this feature has been integrated into Ibatis latest version? Thanks a lot. Clinton Begin wrote: H...this might require some investigation. Here's how you can help: Investigate how OSCache allows propert

RE: Sample Code using javax.sql.DataSource

2005-05-25 Thread Folashade Adeyosoye
Thank you very much; I actually extended “JdbcDaoTemplate” in my “BaseJdbcDao” class that is in turn extended in my MysqlMemberDAO       public class BaseJdbcDao extends JdbcDaoTemplate {     public class MysqlMemberDAO extends BaseJdbcDao implements MemberDAO {      And now I can

Re: Recommended practice / nested ResultMaps

2005-05-25 Thread Karen Koch
Unexpected results in both cases -- in the case of the complex property, equivalence wasn't determined when it "should" have been. (Actually, now that you bring up the necessity of overriding equals() and hashCode(), I see exactly why it didn't work for the complex property -- I only implemented t

Re: [HELP] I can't not type < sign in my sqlmap xml file

2005-05-25 Thread Ron Grabowski
Huy, could you give an example additional functionality that another templating engine would provide? Someone (Brandon?) asked a question a few weeks ago about what other dynamic sql tags people would like to see. I don't think anyone ever responded. I couldn't think of any additional tags myself.

Re: [HELP] I can't not type < sign in my sqlmap xml file

2005-05-25 Thread Brandon Goodin
Nothing you said was menacing at all. I truly look forward to folks innovating against ibatis. I hope that as we progress into the future that ibatis will become more amiable to personal taste. Brandon On 5/25/05, Huy <[EMAIL PROTECTED]> wrote: > Brandon Goodin wrote: > > "freemarker and velocity

R: Query performs differently in SQL Query Analyzer [SOLVED]

2005-05-25 Thread Fabrizio Gianneschi
The Microsoft JDBC driver for SQLServer is ***very*** buggy.   We've got a better experience using jTDS in our projects, too.   Fabrizio Da: Clinton Begin [mailto:[EMAIL PROTECTED] Inviato: mercoledì 25 maggio 2005 6.29A: ibatis-user-java@incubator.apache.orgOggetto: Re: Query performs di

Re: [HELP] I can't not type < sign in my sqlmap xml file

2005-05-25 Thread Huy
Brandon Goodin wrote: "freemarker and velocity macros can create the same tags" The point is simply this... mixing semantics looks like hell. I can understand this. I guess being an end user of such a simple yet effective tool like sqlmap, I keep wishing for things to become even easier (st