Re: [ANNOUNCEMENT] iBATIS Project Team Moving to Google Code

2010-05-21 Thread Clinton Begin
Anyone can fork the code. But you cannot call it iBATIS. As for the issues, we have no intention of migrating all of the issues from Jira to Google Code. We've moved the iBATIS 3 open tickets, only because there were only 20 and it was easy to do. The Jira system will be frozen by Sunday. Most

Re: [ANNOUNCEMENT] iBATIS Project Team Moving to Google Code

2010-05-21 Thread cowwoc
Hi Clinton, On 21/05/2010 10:04 AM, Clinton Begin wrote: Thanks for the questions Gili. >> 1) Why the name change? Couldn't you keep the iBatis name even under Google Code? When I donated iBATIS to the ASF, it was unfortunately irreversible. This is due to the fact that Apache is a 501(c)(

Re: ibator download

2010-05-21 Thread Roy Bailey
Thanks Jeff, I like the fact that Ibator will give me compile time errors for data-model changes, especially as Ibatis is great for legacy databases and I use it to help any re-design evolutions. I actually have my build process include full Ibator regeneration and search/replace automatical

Re: iBATIS 3 @InsertProvider (and other @*Provider) annotation question

2010-05-21 Thread Alex Sherwin
Alright.. don't waste your time, it works fine as one would expect when given proper input. Sorry about that, I'm usually more thorough before resorting to mailing lists On 5/21/2010 11:33 AM, Alex Sherwin wrote: Method is annotated with @InsertProvider, my implementation method takes a Map a

Re: iBATIS 3 @InsertProvider (and other @*Provider) annotation question

2010-05-21 Thread Alex Sherwin
Method is annotated with @InsertProvider, my implementation method takes a Map and can see the array passed in keyed with "array" (I also explicitly set its name with @Param to be sure it was consitent in my sql provider and where it creates the prepared statement values) Generated sql in java

Re: iBATIS 3 @InsertProvider (and other @*Provider) annotation question

2010-05-21 Thread Jeff Butler
Yes - that works. iBATIS is using OGNL to interpret the parameters, so any valid OGNL expression works. Jeff Butler On Fri, May 21, 2010 at 10:04 AM, Alex Sherwin wrote: > On 5/21/2010 10:23 AM, Alex Sherwin wrote: >> >> I just want to make sure, but there is there simply no way to pass >> arg

Re: iBATIS 3 @InsertProvider (and other @*Provider) annotation question

2010-05-21 Thread Alex Sherwin
On 5/21/2010 10:23 AM, Alex Sherwin wrote: I just want to make sure, but there is there simply no way to pass arguments to the sql provider method defined in the annotations such as @InsertProvider? It would be very beneficial to be able to do so in terms of building dynamic sql, such as an i

Re: iBATIS 3 @InsertProvider (and other @*Provider) annotation question

2010-05-21 Thread Jeff Butler
Not right - the parameter object on the interface method is passed to the *Provider method: // interface... @InsertProvider(type=MyProvider.class, method="myInsert") int insertFoo(Foo foo); // provider method... public String myInsert(Foo foo) { } Works like a charm. BTW - join us at the

iBATIS 3 @InsertProvider (and other @*Provider) annotation question

2010-05-21 Thread Alex Sherwin
I just want to make sure, but there is there simply no way to pass arguments to the sql provider method defined in the annotations such as @InsertProvider? It would be very beneficial to be able to do so in terms of building dynamic sql, such as an insert statements for a dynamic number of row

Re: [ANNOUNCEMENT] iBATIS Project Team Moving to Google Code

2010-05-21 Thread Clinton Begin
Thanks for the questions Gili. >> 1) Why the name change? Couldn't you keep the iBatis name even under Google Code? When I donated iBATIS to the ASF, it was unfortunately irreversible. This is due to the fact that Apache is a 501(c)(3) nonprofit organization. They cannot turn over what might be

Re: [ANNOUNCEMENT] iBATIS Project Team Moving to Google Code

2010-05-21 Thread cowwoc
Two questions: 1) Why the name change? Couldn't you keep the iBatis name even under Google Code? 2) Will you apply for an open-source license from JIRA or will you use Google Code's bug tracker? (I prefer the former from a usability point of view) Gili On 21/05/2010 3:54 AM, Clinton Be

Dynamic DataSource

2010-05-21 Thread Giorgio Vespucci
Hi everybody We have the need to decide the referring datasource for some iBatis DAO at login. We are using Spring 3.0.2 with iBatis 2.x We have some properties for the pool _luckily_ fixed, but the DBNAME. Now the situation is as follow:

Re: list all databases in mysql server

2010-05-21 Thread Martin Ellis
On 21 May 2010 08:17, Zhong Nanhai wrote: > Is it possible to show all databases in a mysql server with iBatis? SHOW DATABASES System.out.println(session.selectList("your-namespace.showdatabases")); Martin - To unsubscribe

[ANNOUNCEMENT] iBATIS Project Team Moving to Google Code

2010-05-21 Thread Clinton Begin
*ANNOUNCEMENT* Eight years ago in 2002, I created the iBATIS Data Mapper and introduced SQL Mapping as an approach to persistence layer development. Shortly thereafter, I donated the iBATIS name and code to the Apache Software Foundation. The ASF has been the home of iBATIS for the past six year

Re: list all databases in mysql server

2010-05-21 Thread Zhong Nanhai
Hi, Then, is there any other way? On 5/21/10, Josh Kamau wrote: > IMHO opinion, its not possible because each connection is to one Database. > So your ibatis, JDBC or whatever code only knows the objects under the > database for which connection was made. > > Regards. > > On Fri, May 21, 2010 a

Re: list all databases in mysql server

2010-05-21 Thread Josh Kamau
IMHO opinion, its not possible because each connection is to one Database. So your ibatis, JDBC or whatever code only knows the objects under the database for which connection was made. Regards. On Fri, May 21, 2010 at 10:17 AM, Zhong Nanhai wrote: > Hi, > > Is it possible to show all databases

list all databases in mysql server

2010-05-21 Thread Zhong Nanhai
Hi, Is it possible to show all databases in a mysql server with iBatis? Best Regards, Zhong Nanhai - To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache