RE: Inserting Blob Data in Oracle 9i

2005-11-17 Thread Manikandan.R, ISDC Chennai
thanks Nathan.Now the problem is fixed with the help of ojdc14.jar of oracle 10g( release 2),earlier we tested with older version oracle driver which lead to the above said problem. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: Thursday, November 17, 20

Nested Result Sets with inner joins (important!)

2005-11-17 Thread Paul Benedict
Clinton, One of the most disappointing aspects of IBATIS has to be the inability to reuse result maps for nested properties. IBATIS only allows me to use them if I [1] use another select or [2] use a collection. I get this error every time: "Error instantiating collection property for mapping '

Re: How to clear the Cache when i want to?

2005-11-17 Thread Prashanth Sukumaran
Thanks a ton. PrashanthClinton Begin <[EMAIL PROTECTED]> wrote: sqlMapClient.flushDataCache();Cheers,Clinton On 11/16/05, Prashanth Sukumaran <[EMAIL PROTECTED]> wrote:Hi All,   I am using OSCache for caching query results in iBatis.  I have a cachemodel with flushinterval as 12.  How do i

RE: Nested Lists [signed]

2005-11-17 Thread Michael Laccetti [c]
You know what? That worked perfectly. I cannot believe I missed that. Thanks a lot! Mike -Original Message- From: Zarar Siddiqi [mailto:[EMAIL PROTECTED] Sent: November 17, 2005 4:51 PM To: user-java@ibatis.apache.org Subject: Re: Nested Lists When you're calling "getGamesForChannel"

RE: Nested Lists [signed]

2005-11-17 Thread Michael Laccetti [c]
Hrm. Let me fix that, and see if the NPE goes away. Here's hoping... And yes, I'd love to not have an N+1 select, but I haven't yet understood how to do the joins sufficiently well so that all the different records are returned. Mike -Original Message- From: Zarar Siddiqi [mailto:[EMA

Re: isNotNull / insert / custom type handler

2005-11-17 Thread reubenf
Thanks. I added the stacktrace to the JIRA issue. The experiment didn't work. BTW, my workaround currently is to use the nullValue syntax inline, which works fine. > Hello, > > We'll need a stack trace. Just for kicks though, try specifying the type > explicitly: > > #deploymentStatusId:NUMERIC#

Re: Cache Flushing question

2005-11-17 Thread Clinton Begin
No, unfortunately there is no concept of object identity in iBATISand as far as we can tell, there never will be.  It's a concept that does not mix well with SQL mapping... This is where custom, or domain specific, caching comes into play. Cheers, ClintonOn 11/10/05, Paul Benedict <[EMAIL PRO

Re: JPetStore-4.0.5 Setup Question

2005-11-17 Thread Clinton Begin
There's a properties file for database configuration in the WEB-INF/classes/properties directory Cheers, Clinton On 11/11/05, Scott Purcell <[EMAIL PROTECTED]> wrote: Hello,I am interested in seeing how the IBatis persistance framework may assist in some development, so I downloaed the iBATIS_JPetS

Re: How to clear the Cache when i want to?

2005-11-17 Thread Clinton Begin
sqlMapClient.flushDataCache(); Cheers, ClintonOn 11/16/05, Prashanth Sukumaran <[EMAIL PROTECTED]> wrote: Hi All,   I am using OSCache for caching query results in iBatis.  I have a cachemodel with flushinterval as 12.  How do i initiate the flush cache myself?   Is there any way i can get th

Re: connection pooling

2005-11-17 Thread Clinton Begin
Do you have the ping query (or validation query) enabled? Cheers, ClintonOn 11/17/05, mischa <[EMAIL PROTECTED]> wrote: is there anything i can do to prevent ibatis from putting backconnetions to the pool when they are already closed? i am working withcluster pairs and when the connection to one

Re: isNotNull / insert / custom type handler

2005-11-17 Thread Clinton Begin
Hello, We'll need a stack trace.  Just for kicks though, try specifying the type explicitly: #deploymentStatusId:NUMERIC# or whatever it is... Cheers, Clinton On 11/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Is this a bug, or am I doing something wrong? Here's my insert statement.   

Re: iBatis & OSCache flush cache

2005-11-17 Thread Clinton Begin
You can call sqlMapClient.flushDataCache() Cheers, ClintonOn 11/15/05, Prashanth Sukumaran <[EMAIL PROTECTED]> wrote: Hi All,   I have configured OSCache as the cache model for ibatis.  I would like to flush the cache.   I am trying to use the oscache flush JSTL tablib to accomplish this.  Eve

Re: Cache & Transaction commit synchronization?

2005-11-17 Thread Clinton Begin
Only items read from the database are put on the cache.  The only way uncommitted data could get there is if your transaction isolation level is read_uncommitted. Cheers, ClintonOn 11/15/05, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: Hi, How does SQLMaps ensure the data put on to the

Re: Nested Lists [signed]

2005-11-17 Thread Jeff Butler
The "get_channel-info" result map specifies a column of "channelID" as input to the select "getGamesForChannel".  There is no such column in the query.  Maybe that's it???   Jeff Butler   On 11/17/05, Michael Laccetti <[EMAIL PROTECTED]> wrote: So nobody has any ideas?Mike-Original Message-

Re: Nested Lists [signed]

2005-11-17 Thread Zarar Siddiqi
When you're calling "getGamesForChannel", you're specifying the parameterClass as a String whlie you're passing it a channelID which I am assuming is an Integer. Also, regarding this syntax: select="getLeaguesForGame" /> I'm not too sure you can do what you're doing in the column attribute.

RE: Nested Lists [signed]

2005-11-17 Thread Michael Laccetti
So nobody has any ideas? Mike -Original Message- From: Michael Laccetti [mailto:[EMAIL PROTECTED] Sent: November 16, 2005 10:56 PM To: user-java@ibatis.apache.org Subject: Nested Lists [signed] I've got a bit of a tricky question. I'm trying to retrieve a list of objects from the data

connection pooling

2005-11-17 Thread mischa
is there anything i can do to prevent ibatis from putting back connetions to the pool when they are already closed? i am working with cluster pairs and when the connection to one cluster fails i am switching back to another. it seems like the connection that failed/is closed is getting put back

Re: Reusing resultmap for nested object

2005-11-17 Thread Jeff Butler
I believe this is because reusing result maps is a feature of the "groupBy" function, and iBATIS assumes the property will be a Collection of some kind.  So, the real answer is that you can reuse result maps if your properties are collections.  Otherwise not.   I'm not sure if this is an oversight

Re: Inserting Blob Data in Oracle 9i

2005-11-17 Thread Nathan Maves
Well for starters I am not sure why you wrote your own Custom Type Handler (CTH).  Both the CLOB and BLOB handlers are now built into iBatis.But in any case I think you will find your answer here...http://opensource2.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+a+BLOB+or+CLOBLooks towar

Inserting Blob Data in Oracle 9i

2005-11-17 Thread Manikandan.R, ISDC Chennai
Title: Inserting Blob Data in Oracle 9i Hi, We are doing some feasibility analysis on IBatis SqlMapper. We are using Oracle 9i database and ojdbc14.jar as driver, and we have external Typehandlers for clob and blob data and are matched to String and byte array respectively. As for as fetching

Re: Element Naming Question

2005-11-17 Thread Larry Meadors
Rick's examples stil use 1.x, so they need to be changed for 2.x development. Larry On 11/17/05, Scott Purcell <[EMAIL PROTECTED]> wrote: > I am trying to get an understanding of the IBatis framework, and I am > currently using the reumann web example as a tool. My problem is as follows > thou

Re: A question about Map results??

2005-11-17 Thread Gary Bradshaw
Hi, Xinyu. You can specify a nested resultMap for the bean property instead of a column. Of course, in your example, you could just map directly to the bean and not use a HashMap at all, since the bean is the only property in the map. But you could have more beans or other non-bean properties

Element Naming Question

2005-11-17 Thread Scott Purcell
I am trying to get an understanding of the IBatis framework, and I am currently using the reumann web example as a tool. My problem is as follows though. In the EmployeeSQL.xml mapping, I am seeing elements like this: and But as I am using the DevGuide.pdf from the IBatis site download, they

Re: Row Access failure caused by cached column name ?

2005-11-17 Thread Larry Meadors
Add remapResults="true" to the statement. Larry On 11/17/05, Mathew Samuel <[EMAIL PROTECTED]> wrote: > > When column is added dynamically to an Oracle table > that is already defined and operated upon within an > sqlmap, (using select * from table), a general fetch > (results of a "select *" is

Re: Reusing resultmap for nested object

2005-11-17 Thread Medium
I tried this, but get the following error. I am using the java version 2.1.6.589 (Sorry about the long trace). Hoping someone can shed some light on this. Thanks. Huy My map is below: extends="pickResultMap"> org.springframework.jdbc.UncategorizedSQLExcepti

A question about Map results??

2005-11-17 Thread 张鑫宇
HI,   if the resultMap class is a HashMap,and a property in it is a javabean class,it has serval properties. How to set the resultMap for the property?   I write the resultMap like under,but it doesn't work.         select PRD_ID,PRD_DESCRIPION from product    How to set the pr

Row Access failure caused by cached column name ?

2005-11-17 Thread Mathew Samuel
When column is added dynamically to an Oracle table that is already defined and operated upon within an sqlmap, (using select * from table), a general fetch (results of a "select *" is mapped to a HashMap) before and after the deletion of that column causes iBATIS to reference the column name from