cache question

2010-04-22 Thread Sergey Livanov
I use iBatis 2.6. v. Does the cache work, when I call the sql statement by stored procedure ?

Problem with id mapping to IDENTITY in HSQLDB

2010-04-22 Thread Andrea Selva
Hi list, i've a trouble with IDENTITY in hsqldb and id attribute in a resulMap: --- Activity DDL DROP TABLE Activity; CREATE TABLE Activity ( idActivity IDENTITY, name varchar(30) not null, description varchar(100) null, constraint pk_activity primary key (idActivity) );

iBatis 3 - issue using annotations during Maven compile process

2010-04-22 Thread Davide Rossoni
I'm using iBatis 3.0 GA and I'm trying to compile my project using Maven. Eclipse compiles the project well, without errors, but Maven generates a COMPILATION ERROR like this: MyTableMapper.java:[13,4] illegal start of expression Here is the simple code: public interface MyTableMapper {

Re: iBatis 3 - issue using annotations during Maven compile process

2010-04-22 Thread Clinton Begin
Are you sure you're compiling with jdk 5 or above? On 2010-04-22, Davide Rossoni rossoni.dav...@gmail.com wrote: I'm using iBatis 3.0 GA and I'm trying to compile my project using Maven. Eclipse compiles the project well, without errors, but Maven generates a COMPILATION ERROR like this:

Re: iBatis 3 - issue using annotations during Maven compile process

2010-04-22 Thread Davide Rossoni
On Apr 22, 2010, at 3:15 PM, Clinton Begin wrote: ling with jdk 5 or a - To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org For additional commands, e-mail: user-java-h...@ibatis.apache.org

Re: Problem with id mapping to IDENTITY in HSQLDB

2010-04-22 Thread Clinton Begin
There's currently no way to use an xml result map from an annotation. Remember, ibatis is not an ORM, so you have to pair result maps with statements each time, and currently the entire pair must be xml or annotations. On 2010-04-22, Andrea Selva selva.an...@gmail.com wrote: Hi list, i've a

Re: iBatis 3 - issue using annotations during Maven compile process

2010-04-22 Thread Davide Rossoni
Sure, please check at this pom.xml section: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId version2.3/version configuration source1.6/source target1.6/target compilerVersion1.6/compilerVersion /configuration

Re: cache question

2010-04-22 Thread Clinton Begin
Yes, but not for output params or ref cursors. On 2010-04-22, Sergey Livanov sergey.liva...@gmail.com wrote: I use iBatis 2.6. v. Does the cache work, when I call the sql statement by stored procedure ? -- Sent from my mobile device

iBATIS 3 Live

2010-04-22 Thread Jeff Butler
Hi All, I wanted to let everyone know that we've deployed our first production web application using iBATIS version 3 and all is working very well. It's running in WebSphere (no EJBs) and hitting a very difficult DB2 database. We also used Ibator to generate almost all of the queries - which

How to get a result from output parameter(SYS_REFCURSOR) in iBATIS 3(by using annotation)

2010-04-22 Thread Alex Park
Hi there, How to get a result from output parameter(oracle cursor). Below is my code and that is not work. Does anyone can help me? Oracle Stored Procedure: CREATE OR REPLACE PROCEDURE getProducts ( rs OUT SYS_REFCURSOR ) IS BEGIN OPEN rs FOR SELECT * FROM Products; END getProducts;

Re: Problem with id mapping to IDENTITY in HSQLDB

2010-04-22 Thread Andrea Selva
Thanks for the reply Clinton. Using annotations implicitly drives my mind to ORM. Is there a way to say that an @Select annotation could be linked to a resultMap defined in th XML? Else i think that i have to replicate the resultMap in annotation syntahx with (@Results and @Result) or that i have

Re: iBATIS 3 Live

2010-04-22 Thread Nathan Maves
I too have an application, which is not live just yet, but very solid. Clinton and I are looking to release the 3.0.1 GA as soon as we get a vote out to the community. Look for a vote email this weekend. We encourage every one from the community to vote on the GA version. Nathan On Thu, Apr

Problem with sql map XML files inside jar

2010-04-22 Thread Björn Raupach
Hi, there are some german umlauts in my mapper files. In fact all the column and table names in the database are in german. Unit tests run fine. If I create a jar file and include all the mapper files, the application crashes with an sql exception because the umlauts in the table name are not

Migration and maven plugin

2010-04-22 Thread Marco Speranza
Hi all, I'm working to develop a little maven plugin that integrates ibatis migrate API with the maven build life cycle. Now I have to integrate the system.out information that migrate writes to screen, with the standard maven log and my problem is this: migrate uses a PrintStream instance to

Re: Migration and maven plugin

2010-04-22 Thread Marco Speranza
Done.. https://issues.apache.org/jira/browse/IBATIS-783 tnx a lot :-) 2010/4/22 Nathan Maves nathan.ma...@gmail.com absolutely put in a jira and your patch and we will look at it On Thu, Apr 22, 2010 at 10:53 AM, Marco Speranza marco.speranz...@gmail.com wrote: Hi all, I'm working to

Re: iBATIS 3 Live

2010-04-22 Thread Guy Rouillier
We've had our production customer portal running with iBATIS beta 7 for 3 months now ;) Working great, but obviously would like to upgrade to a GA version for our next point release. On 4/22/2010 11:15 AM, Jeff Butler wrote: Hi All, I wanted to let everyone know that we've deployed our

Re: iBATIS 3 Live

2010-04-22 Thread Clinton Begin
Do either of you use ManagedTransaction? Clinton On Thu, Apr 22, 2010 at 12:38 PM, Guy Rouillier guyr-...@burntmail.comwrote: We've had our production customer portal running with iBATIS beta 7 for 3 months now ;) Working great, but obviously would like to upgrade to a GA version for our

Re: iBATIS 3 Live

2010-04-22 Thread Jeff Butler
Not me. Jeff Butler On 4/22/10, Clinton Begin clinton.be...@gmail.com wrote: Do either of you use ManagedTransaction? Clinton On Thu, Apr 22, 2010 at 12:38 PM, Guy Rouillier guyr-...@burntmail.comwrote: We've had our production customer portal running with iBATIS beta 7 for 3 months

Re: Transaction management in iBATIS 3 inside an EJB (3.1) container

2010-04-22 Thread Clinton Begin
Thanks for the Websphere background. Indeed it seems that this was left as an implementation detail. But Glassfish and Websphere are a pretty good cross section of how it should work. Cheers, Clinton On Thu, Apr 22, 2010 at 3:32 PM, Adinath Raveendra Raj adin...@acciente.com wrote: Clinton,