Creating superclass TypeHandlers (jdbcType/javaType)

2006-08-24 Thread jaybytez
I wanted to see still if anyone had thoughts of the possibility for creating typehandlers for a superclass and utilizing that typehandler for all implementations of that superclass. Anyone have examples of how they do that? What I am trying to find out is how that can be done without (jdbcType/j

HashMaps, groupBy, error!

2006-08-24 Thread Daniel Pitts
I'm having a hard time with groupBy and hashmaps. I'm getting an exception: "Error instantiating collection property for mapping 'blog'. Cause: java.lang.ClassCastException: java.lang.Object" I call queryForMap("getBlogAndCategoriesForContent", parameters, "blog", "category"); When my query comple

Re: Abator Version 1.0.0 Now Available!

2006-08-24 Thread Jeff Butler
I'm glad you like iBATIS and Abator!   Unfortunately, adding the methods to the DaoManager interface is not that easy.  The DAO transaction classes are implemented by other transaction managers besides iBATIS - and the correspoding methods do not exist in some of the other implementations.   I thi

Re: iBATIS v2.2.0 Beta

2006-08-24 Thread Jeff Butler
I've stated this several times, but just to be clear - the iBATIS artifacts in ibiblio were not placed there by any iBATIS committer - we don't know how they got there.  Maybe the 2.2.0 release will get there eventually?   There is an open issue for our team to get them into ibiblio, but I wouldn'

Re: custom abator javaTypeResolver and eclipse

2006-08-24 Thread Jeff Butler
Classloading in Eclipse plugins is complex.   Basicly, the Abator plugin will not be able to see your custom class if you run Abator through the menu option.  There may be something I can do about that at some point, but I've not figured it out yet.   I think you can get this to work if you use the

Re: M:N question

2006-08-24 Thread Nathan Maves
Ok you got me confused on this post. In your class Foo you have a Map with keys that point to a list. Does this mean that your key would be the "a" from the marMap table and the List is the "b" How about a real world example. What does this Map represent? How about an Invoice with multiple

RE: Update query

2006-08-24 Thread Poitras Christian
Are you calling insert instread of update in your dao class?   Christian From: Daniel Pitts [mailto:[EMAIL PROTECTED] Sent: Thursday, 24 August 2006 12:25To: user-java@ibatis.apache.orgSubject: RE: Update query I think his parameter class has a property named "track" which is a bean with

RE: Update query

2006-08-24 Thread Daniel Pitts
I think his parameter class has a property named "track" which is a bean with a property named "id".   Anyway, I would probably debug (either set a break point, or just println) the value of track and track.getId() before calling this query. From: puneet arya [mailto:[EMAIL PROTECTED] Sent

Re: dynamic script's

2006-08-24 Thread Larry Meadors
Agreed. IMO this is one of those areas where you have to balance portability and functionality. From what I have seen, bundling stuff together like this can provide a significant performance boost, but on the down side, it's Oracle-specific. In my case, I don't care that it's Oracle-specific, be

Re: iBATIS v2.2.0 Beta

2006-08-24 Thread Michael Campbell
I'm in the same boat. While I'm waiting for them to release the final version into ibiblio however, I just installed the iBatis 2.2.0.xxx jars into my local repository. On 8/24/06, Carlos Cajina <[EMAIL PROTECTED]> wrote: Hi, good morning! Regarding the iBATIS release process discussed in th

Re: iBATIS v2.2.0 Beta

2006-08-24 Thread Carlos Cajina
Hi, good morning!   Regarding the iBATIS release process discussed in this thread I wonder How this release process would affect Maven repositories (i.e. ibiblio)? I'm thinking of users who, like me, have some sort of automated dependencies manager.   By the way, Would the naming change in th

Re: dynamic script's

2006-08-24 Thread Michael Campbell
Does this not depend on how Prepared Statements are implemented? As I recall, one of the big db's does them as a stored proc. In that light, multiple statements seems reasonable, but this sort of behavior (like most things) might not valid across all the dbs that one might consider. I guess the

Re: dynamic script's

2006-08-24 Thread Larry Meadors
This works perfectly in Oracle: BEGIN DELETE FROM Child WHERE childId = #parentId#; DELETE FROM Parent WHERE parentId = #parentId#; END; It is a single prepared statement, and performs great. Larry On 8/23/06, Daniel Pitts <[EMAIL PROTECTED]> wrote: Is there a way to run an SQL "sc

custom abator javaTypeResolver and eclipse

2006-08-24 Thread Olivier Ziller GMail Lists
hello, i'm using the abator eclipse plugin and i've developped my own javaTypeResolver i try to reference it in my abatorConfig.xml but the problem is that each time i run abator i get the error "Unexpected error while running Abator. Cannot instantiate object of type fr.univnancy2.

Re: iBATIS v2.2.0 Beta

2006-08-24 Thread Jeff Butler
It is beta because it was a very large update, and we wanted some user feedback beyond our own testing.   So far there has been only one issue when using the JDBC/ODBC bridge driver (rarely used I think).   Our release process is to release new versions as beta, and after some time we will take a v

iBATIS v2.2.0 Beta

2006-08-24 Thread Rashmi Dixit
Hi,   I see from the website that the latest version of iBATIS released is a Beta version. What does this imply? (I apologize if my question is very juvenile). I need to upgrade from the older version to this one. However, is this is a good time to do so? Or should I wait until GA to upgr

RE: Update query

2006-08-24 Thread Mkhitaryan, Aram
Check one more time your classes for public getters and setters. Also change primitive types to their Object wrappers (int to Integer, double to Double and so on).   This should help! There is nothing problematic. It is so simple.   Best, Aram  

RE: N question

2006-08-24 Thread Mkhitaryan, Aram
You have to use select attribute and specify one select which will get data for list and put in map (for this you have to write one additional result map). In documentations it is described in details how to use select and result-map attributes in result maps. Best, Aram -Original Message

Re: Update query

2006-08-24 Thread puneet arya
Hi,   try to remove the . bw track and id and use track_id instead ..may be it workslike #track_id#Regards,Puneet AryaAndreas Prudzilko <[EMAIL PROTECTED]> wrote:Hello,   I was wondering why my track_id is set to 0 after an update statement. The #track.id# syntax worked fine for inser

Update query

2006-08-24 Thread Andreas Prudzilko
Hello,   I was wondering why my track_id is set to 0 after an update statement. The #track.id# syntax worked fine for insert statements, my Track object is also set properly with a valid ID.   Here how it looks like:           UPDATE project

RE: dynamic script's

2006-08-24 Thread Mkhitaryan, Aram
Yeah, it would be nice to have such a feature!   Best, Aram From: Daniel Pitts [mailto:[EMAIL PROTECTED] Sent: Thursday, August 24, 2006 1:03 AM To: user-java@ibatis.apache.org Subject: RE: dynamic script's   Perhaps. It might be nic

RE: CDATA inside or outside of statement tag

2006-08-24 Thread Mkhitaryan, Aram
Only the second will work.   In first case you will get a lot of SQLExcwptions because “   Best, Aram   From: Mississippi John Hurt [mailto:[EMAIL PROTECTED] Sent: Thursday, August 24, 2006 1:01 AM To: user-java@ibatis.apache.org

RE: dynamic script's

2006-08-24 Thread Mkhitaryan, Aram
It is not good idea to have more than one statement. As I know, IBATIS uses PreaparedStatements for at least insert/update statements and in JDBC API it is written that PreaparedStatements works with only one statement (see java.sql.Connection#prepareStatement).   M

RE: Cannot serialize session attribute

2006-08-24 Thread Mkhitaryan, Aram
It may be Eclipse problem. Send this message also in Eclipse mailing lists. Why do you use 3.0.0. Now already 3.2.0 is released. It works great! Try it! Do you use clustered Tomcat? For normal cases Tomcat's session manager doesn't serialize its content, it happens only when Tomcat is clustered

RE: java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList

2006-08-24 Thread Mkhitaryan, Aram
Don’t use lazy loading if your data will be transferred (via rmi,…). And moving to 2.x will not help, I don’t think that it can help.   And also it is not good for performance. Even if in new releases lazy loading will support Remote interface for RMI, you will