mybatis integration with Spring 2.5 not working

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

mybatis integration with Spring 2.5 not working

Prashant Neginahal
I was trying to test mybatis integration with Spring 2.5 using Maven.
But mybatis-spring 1.0 maven artifact has dependency on Spring 3, so i
excluded all these spring 3 dependencies and added Spring 2.5.6
dependencies in my project. But, i am getting below error while
loading spring context file. However, same code works fine with Spring
3 dependecy. Any idea what is the cause and how to resolve this error?
Or, is it ONLY works with Spring 3?

Caused by: java.lang.reflect.MalformedParameterizedTypeException
        at
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(ParameterizedTypeImpl.java:
42)
        at
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(ParameterizedTypeImpl.java:
35)
        at
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(ParameterizedTypeImpl.java:
77)
        at
sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(CoreReflectionFactory.java:
86)
        at
sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:
122)
        at
sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:
31)
        at
sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(ClassRepository.java:
82)
        at java.lang.Class.getGenericInterfaces(Class.java:794)
        at
org.springframework.core.GenericTypeResolver.getTypeVariableMap(GenericTypeResolver.java:
151)
        at
org.springframework.core.GenericTypeResolver.resolveParameterType(GenericTypeResolver.java:
81)
        at
org.springframework.beans.GenericTypeAwarePropertyDescriptor.getWriteMethodParameter(GenericTypeAwarePropertyDescriptor.java:
109)
        at
org.springframework.beans.GenericTypeAwarePropertyDescriptor.getPropertyType(GenericTypeAwarePropertyDescriptor.java:
91)
        at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:
138)
        at
org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:
386)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:
1289)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:
1250)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:
1010)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
472)
        ... 14 more

Thanks,
Prashant
Reply | Threaded
Open this post in threaded view
|

Re: mybatis integration with Spring 2.5 not working

Eduardo Macarron
Some time ago a user reported this problem. I also read other cases
reported in Spring jira and other framework trackers.

I thought this happened with you mix Spring 2.5 and Spring 3.0. Make
sure that you don't have any other dependency on Spring 3.
Reply | Threaded
Open this post in threaded view
|

Re: mybatis integration with Spring 2.5 not working

Eduardo Macarron
Reply | Threaded
Open this post in threaded view
|

Re: mybatis integration with Spring 2.5 not working

Prashant Neginahal
I have excluded everything depends on Spring 3. Below is my POM file.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.testing</groupId>
        <artifactId>spring-mybatis-integration</artifactId>
        <version>0.0.1-SNAPSHOT</version>
        <dependencies>
                <dependency>
                        <groupId>org.mybatis</groupId>
                        <artifactId>mybatis-spring</artifactId>
                        <version>1.0.0</version>
                        <type>jar</type>
                        <scope>compile</scope>
                        <exclusions>
                                <exclusion>
                                        <artifactId>spring-core</artifactId>
                                        <groupId>org.springframework</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>spring-tx</artifactId>
                                        <groupId>org.springframework</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>spring-jdbc</artifactId>
                                        <groupId>org.springframework</groupId>
                                </exclusion>
                                <exclusion>
                                        <artifactId>spring-context</artifactId>
                                        <groupId>org.springframework</groupId>
                                </exclusion>
                        </exclusions>
                </dependency>
                <dependency>
                        <groupId>commons-lang</groupId>
                        <artifactId>commons-lang</artifactId>
                        <version>2.6</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-core</artifactId>
                        <version>2.5.6</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-tx</artifactId>
                        <version>2.5.6</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-jdbc</artifactId>
                        <version>2.5.6</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
                <dependency>
                        <groupId>org.springframework</groupId>
                        <artifactId>spring-context</artifactId>
                        <version>2.5.6</version>
                        <type>jar</type>
                        <scope>compile</scope>
                </dependency>
        </dependencies>
</project>

On Feb 15, 4:48 pm, Eduardo <[hidden email]> wrote:
> http://blog.springsource.com/2009/05/06/spring-framework-30-m3-releas...
Reply | Threaded
Open this post in threaded view
|

Re: mybatis integration with Spring 2.5 not working

Prashant Neginahal
Anybody has tried out mybatis-spring with Spring 2.5.6? When i looked
at Maven Dependencies, there is no dependency to Spring 3 anywhere,
not sure when do we get this exception.

On Feb 15, 5:48 pm, Prashant Neginahal <[hidden email]> wrote:

> I have excluded everything depends on Spring 3. Below is my POM file.
>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4.0.0.xsd">
>         <modelVersion>4.0.0</modelVersion>
>         <groupId>com.testing</groupId>
>         <artifactId>spring-mybatis-integration</artifactId>
>         <version>0.0.1-SNAPSHOT</version>
>         <dependencies>
>                 <dependency>
>                         <groupId>org.mybatis</groupId>
>                         <artifactId>mybatis-spring</artifactId>
>                         <version>1.0.0</version>
>                         <type>jar</type>
>                         <scope>compile</scope>
>                         <exclusions>
>                                 <exclusion>
>                                         <artifactId>spring-core</artifactId>
>                                         <groupId>org.springframework</groupId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <artifactId>spring-tx</artifactId>
>                                         <groupId>org.springframework</groupId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <artifactId>spring-jdbc</artifactId>
>                                         <groupId>org.springframework</groupId>
>                                 </exclusion>
>                                 <exclusion>
>                                         <artifactId>spring-context</artifactId>
>                                         <groupId>org.springframework</groupId>
>                                 </exclusion>
>                         </exclusions>
>                 </dependency>
>                 <dependency>
>                         <groupId>commons-lang</groupId>
>                         <artifactId>commons-lang</artifactId>
>                         <version>2.6</version>
>                         <type>jar</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.springframework</groupId>
>                         <artifactId>spring-core</artifactId>
>                         <version>2.5.6</version>
>                         <type>jar</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.springframework</groupId>
>                         <artifactId>spring-tx</artifactId>
>                         <version>2.5.6</version>
>                         <type>jar</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.springframework</groupId>
>                         <artifactId>spring-jdbc</artifactId>
>                         <version>2.5.6</version>
>                         <type>jar</type>
>                         <scope>compile</scope>
>                 </dependency>
>                 <dependency>
>                         <groupId>org.springframework</groupId>
>                         <artifactId>spring-context</artifactId>
>                         <version>2.5.6</version>
>                         <type>jar</type>
>                         <scope>compile</scope>
>                 </dependency>
>         </dependencies>
> </project>
>
> On Feb 15, 4:48 pm, Eduardo <[hidden email]> wrote:
>
>
>
> >http://blog.springsource.com/2009/05/06/spring-framework-30-m3-releas...- Hide quoted text -
>
> - Show quoted text -
Reply | Threaded
Open this post in threaded view
|

Re: mybatis integration with Spring 2.5 not working

Prashant Neginahal
I found the reason for this...

The SqlSessionFactoryBean implementes parameterized
FactoryBean<SqlSessionFactory> which is not available in spring-beans
2.5.6. and that is the reason we get
MalformedParameterizedTypeException when spring DI tries to create
bean for SqlSessionFactoryBean. So, i think mybatis-spring 1.0 is NOT
compatible with Spring 2.5.6.

Thanks,
Prashant

On Feb 15, 9:21 pm, Prashant Neginahal <[hidden email]> wrote:

> Anybody has tried out mybatis-spring with Spring 2.5.6? When i looked
> at Maven Dependencies, there is no dependency to Spring 3 anywhere,
> not sure when do we get this exception.
>
> On Feb 15, 5:48 pm, Prashant Neginahal <[hidden email]> wrote:
>
>
>
> > I have excluded everything depends on Spring 3. Below is my POM file.
>
> > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4....">
> >         <modelVersion>4.0.0</modelVersion>
> >         <groupId>com.testing</groupId>
> >         <artifactId>spring-mybatis-integration</artifactId>
> >         <version>0.0.1-SNAPSHOT</version>
> >         <dependencies>
> >                 <dependency>
> >                         <groupId>org.mybatis</groupId>
> >                         <artifactId>mybatis-spring</artifactId>
> >                         <version>1.0.0</version>
> >                         <type>jar</type>
> >                         <scope>compile</scope>
> >                         <exclusions>
> >                                 <exclusion>
> >                                         <artifactId>spring-core</artifactId>
> >                                         <groupId>org.springframework</groupId>
> >                                 </exclusion>
> >                                 <exclusion>
> >                                         <artifactId>spring-tx</artifactId>
> >                                         <groupId>org.springframework</groupId>
> >                                 </exclusion>
> >                                 <exclusion>
> >                                         <artifactId>spring-jdbc</artifactId>
> >                                         <groupId>org.springframework</groupId>
> >                                 </exclusion>
> >                                 <exclusion>
> >                                         <artifactId>spring-context</artifactId>
> >                                         <groupId>org.springframework</groupId>
> >                                 </exclusion>
> >                         </exclusions>
> >                 </dependency>
> >                 <dependency>
> >                         <groupId>commons-lang</groupId>
> >                         <artifactId>commons-lang</artifactId>
> >                         <version>2.6</version>
> >                         <type>jar</type>
> >                         <scope>compile</scope>
> >                 </dependency>
> >                 <dependency>
> >                         <groupId>org.springframework</groupId>
> >                         <artifactId>spring-core</artifactId>
> >                         <version>2.5.6</version>
> >                         <type>jar</type>
> >                         <scope>compile</scope>
> >                 </dependency>
> >                 <dependency>
> >                         <groupId>org.springframework</groupId>
> >                         <artifactId>spring-tx</artifactId>
> >                         <version>2.5.6</version>
> >                         <type>jar</type>
> >                         <scope>compile</scope>
> >                 </dependency>
> >                 <dependency>
> >                         <groupId>org.springframework</groupId>
> >                         <artifactId>spring-jdbc</artifactId>
> >                         <version>2.5.6</version>
> >                         <type>jar</type>
> >                         <scope>compile</scope>
> >                 </dependency>
> >                 <dependency>
> >                         <groupId>org.springframework</groupId>
> >                         <artifactId>spring-context</artifactId>
> >                         <version>2.5.6</version>
> >                         <type>jar</type>
> >                         <scope>compile</scope>
> >                 </dependency>
> >         </dependencies>
> > </project>
>
> > On Feb 15, 4:48 pm, Eduardo <[hidden email]> wrote:
>
> > >http://blog.springsource.com/2009/05/06/spring-framework-30-m3-releas...Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
Reply | Threaded
Open this post in threaded view
|

Re: mybatis integration with Spring 2.5 not working

Eduardo Macarron
That sounds reasonable.

If you can not go Spring 3.x you may try recompiling MyBatis-Spring
without generics.

On 15 feb, 18:01, Prashant Neginahal <[hidden email]> wrote:

> I found the reason for this...
>
> The SqlSessionFactoryBean implementes parameterized
> FactoryBean<SqlSessionFactory> which is not available in spring-beans
> 2.5.6. and that is the reason we get
> MalformedParameterizedTypeException when spring DI tries to create
> bean for SqlSessionFactoryBean. So, i think mybatis-spring 1.0 is NOT
> compatible with Spring 2.5.6.
>
> Thanks,
> Prashant
>
> On Feb 15, 9:21 pm, Prashant Neginahal <[hidden email]> wrote:
>
> > Anybody has tried out mybatis-spring with Spring 2.5.6? When i looked
> > at Maven Dependencies, there is no dependency to Spring 3 anywhere,
> > not sure when do we get this exception.
>
> > On Feb 15, 5:48 pm, Prashant Neginahal <[hidden email]> wrote:
>
> > > I have excluded everything depends on Spring 3. Below is my POM file.
>
> > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > >         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4....">
> > >         <modelVersion>4.0.0</modelVersion>
> > >         <groupId>com.testing</groupId>
> > >         <artifactId>spring-mybatis-integration</artifactId>
> > >         <version>0.0.1-SNAPSHOT</version>
> > >         <dependencies>
> > >                 <dependency>
> > >                         <groupId>org.mybatis</groupId>
> > >                         <artifactId>mybatis-spring</artifactId>
> > >                         <version>1.0.0</version>
> > >                         <type>jar</type>
> > >                         <scope>compile</scope>
> > >                         <exclusions>
> > >                                 <exclusion>
> > >                                         <artifactId>spring-core</artifactId>
> > >                                         <groupId>org.springframework</groupId>
> > >                                 </exclusion>
> > >                                 <exclusion>
> > >                                         <artifactId>spring-tx</artifactId>
> > >                                         <groupId>org.springframework</groupId>
> > >                                 </exclusion>
> > >                                 <exclusion>
> > >                                         <artifactId>spring-jdbc</artifactId>
> > >                                         <groupId>org.springframework</groupId>
> > >                                 </exclusion>
> > >                                 <exclusion>
> > >                                         <artifactId>spring-context</artifactId>
> > >                                         <groupId>org.springframework</groupId>
> > >                                 </exclusion>
> > >                         </exclusions>
> > >                 </dependency>
> > >                 <dependency>
> > >                         <groupId>commons-lang</groupId>
> > >                         <artifactId>commons-lang</artifactId>
> > >                         <version>2.6</version>
> > >                         <type>jar</type>
> > >                         <scope>compile</scope>
> > >                 </dependency>
> > >                 <dependency>
> > >                         <groupId>org.springframework</groupId>
> > >                         <artifactId>spring-core</artifactId>
> > >                         <version>2.5.6</version>
> > >                         <type>jar</type>
> > >                         <scope>compile</scope>
> > >                 </dependency>
> > >                 <dependency>
> > >                         <groupId>org.springframework</groupId>
> > >                         <artifactId>spring-tx</artifactId>
> > >                         <version>2.5.6</version>
> > >                         <type>jar</type>
> > >                         <scope>compile</scope>
> > >                 </dependency>
> > >                 <dependency>
> > >                         <groupId>org.springframework</groupId>
> > >                         <artifactId>spring-jdbc</artifactId>
> > >                         <version>2.5.6</version>
> > >                         <type>jar</type>
> > >                         <scope>compile</scope>
> > >                 </dependency>
> > >                 <dependency>
> > >                         <groupId>org.springframework</groupId>
> > >                         <artifactId>spring-context</artifactId>
> > >                         <version>2.5.6</version>
> > >                         <type>jar</type>
> > >                         <scope>compile</scope>
> > >                 </dependency>
> > >         </dependencies>
> > > </project>
>
> > > On Feb 15, 4:48 pm, Eduardo <[hidden email]> wrote:
>
> > > >http://blog.springsource.com/2009/05/06/spring-framework-30-m3-releas...quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
Reply | Threaded
Open this post in threaded view
|

Re: mybatis integration with Spring 2.5 not working

Prashant Neginahal
It works. I just removed the generics from SqlSessionFactoryBean and
recompiled and installed in my maven repository with same coordinates.
Do you suggest go with it?I have  an option of Spring 2.5 + Ibatis 2.3
and Spring 2.5+myBatis 3. I am leaning towards later, but just wanted
ensure this approach has no issues.

Thanks,
Prashant


On Feb 16, 12:32 am, Eduardo <[hidden email]> wrote:

> That sounds reasonable.
>
> If you can not go Spring 3.x you may try recompiling MyBatis-Spring
> without generics.
>
> On 15 feb, 18:01, Prashant Neginahal <[hidden email]> wrote:
>
>
>
> > I found the reason for this...
>
> > The SqlSessionFactoryBean implementes parameterized
> > FactoryBean<SqlSessionFactory> which is not available in spring-beans
> > 2.5.6. and that is the reason we get
> > MalformedParameterizedTypeException when spring DI tries to create
> > bean for SqlSessionFactoryBean. So, i think mybatis-spring 1.0 is NOT
> > compatible with Spring 2.5.6.
>
> > Thanks,
> > Prashant
>
> > On Feb 15, 9:21 pm, Prashant Neginahal <[hidden email]> wrote:
>
> > > Anybody has tried out mybatis-spring with Spring 2.5.6? When i looked
> > > at Maven Dependencies, there is no dependency to Spring 3 anywhere,
> > > not sure when do we get this exception.
>
> > > On Feb 15, 5:48 pm, Prashant Neginahal <[hidden email]> wrote:
>
> > > > I have excluded everything depends on Spring 3. Below is my POM file.
>
> > > > <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > > >         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/xsd/maven-4....">
> > > >         <modelVersion>4.0.0</modelVersion>
> > > >         <groupId>com.testing</groupId>
> > > >         <artifactId>spring-mybatis-integration</artifactId>
> > > >         <version>0.0.1-SNAPSHOT</version>
> > > >         <dependencies>
> > > >                 <dependency>
> > > >                         <groupId>org.mybatis</groupId>
> > > >                         <artifactId>mybatis-spring</artifactId>
> > > >                         <version>1.0.0</version>
> > > >                         <type>jar</type>
> > > >                         <scope>compile</scope>
> > > >                         <exclusions>
> > > >                                 <exclusion>
> > > >                                         <artifactId>spring-core</artifactId>
> > > >                                         <groupId>org.springframework</groupId>
> > > >                                 </exclusion>
> > > >                                 <exclusion>
> > > >                                         <artifactId>spring-tx</artifactId>
> > > >                                         <groupId>org.springframework</groupId>
> > > >                                 </exclusion>
> > > >                                 <exclusion>
> > > >                                         <artifactId>spring-jdbc</artifactId>
> > > >                                         <groupId>org.springframework</groupId>
> > > >                                 </exclusion>
> > > >                                 <exclusion>
> > > >                                         <artifactId>spring-context</artifactId>
> > > >                                         <groupId>org.springframework</groupId>
> > > >                                 </exclusion>
> > > >                         </exclusions>
> > > >                 </dependency>
> > > >                 <dependency>
> > > >                         <groupId>commons-lang</groupId>
> > > >                         <artifactId>commons-lang</artifactId>
> > > >                         <version>2.6</version>
> > > >                         <type>jar</type>
> > > >                         <scope>compile</scope>
> > > >                 </dependency>
> > > >                 <dependency>
> > > >                         <groupId>org.springframework</groupId>
> > > >                         <artifactId>spring-core</artifactId>
> > > >                         <version>2.5.6</version>
> > > >                         <type>jar</type>
> > > >                         <scope>compile</scope>
> > > >                 </dependency>
> > > >                 <dependency>
> > > >                         <groupId>org.springframework</groupId>
> > > >                         <artifactId>spring-tx</artifactId>
> > > >                         <version>2.5.6</version>
> > > >                         <type>jar</type>
> > > >                         <scope>compile</scope>
> > > >                 </dependency>
> > > >                 <dependency>
> > > >                         <groupId>org.springframework</groupId>
> > > >                         <artifactId>spring-jdbc</artifactId>
> > > >                         <version>2.5.6</version>
> > > >                         <type>jar</type>
> > > >                         <scope>compile</scope>
> > > >                 </dependency>
> > > >                 <dependency>
> > > >                         <groupId>org.springframework</groupId>
> > > >                         <artifactId>spring-context</artifactId>
> > > >                         <version>2.5.6</version>
> > > >                         <type>jar</type>
> > > >                         <scope>compile</scope>
> > > >                 </dependency>
> > > >         </dependencies>
> > > > </project>
>
> > > > On Feb 15, 4:48 pm, Eduardo <[hidden email]> wrote:
>
> > > > >http://blog.springsource.com/2009/05/06/spring-framework-30-m3-releas...text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
Reply | Threaded
Open this post in threaded view
|

Re: mybatis integration with Spring 2.5 not working

Eduardo Macarron
On 17 feb, 12:13, Prashant Neginahal <[hidden email]> wrote:
> It works. I just removed the generics from SqlSessionFactoryBean and
> recompiled and installed in my maven repository with same coordinates.
> Do you suggest go with it?I have  an option of Spring 2.5 + Ibatis 2.3
> and Spring 2.5+myBatis 3. I am leaning towards later, but just wanted
> ensure this approach has no issues.

That depends on the criticity of your system. Spring 2.5 + ibatis 2 is
a tested and robust solution.

Spring 2.5 + MyBatis 3 has never been tested, if an error is found due
to Spring version you may have to fix it yourself. If there is a
problem with Spring 3 there is no warranty that we will fix it but I
am quite sure we will or at least try :) So this is a risk you should
take into account.

What is the problem with Spring 3 + MyBatis 3? If you are starting a
new project why you can choose MyBatis version but not Spring version?
Reply | Threaded
Open this post in threaded view
|

Re: mybatis integration with Spring 2.5 not working

Pooja Sharma
Hi Team,

I am looking looking to start working on Spring 2.5 + Ibatis 2.3 but not able to find any useful link for it.

Can u help me to suggest an sample application or URL so i  can develop.

Thanks
Waiting for response...


On Thursday, February 17, 2011 6:06:25 PM UTC+5:30, Eduardo wrote:
On 17 feb, 12:13, Prashant Neginahal <[hidden email]> wrote:
> It works. I just removed the generics from SqlSessionFactoryBean and
> recompiled and installed in my maven repository with same coordinates.
> Do you suggest go with it?I have  an option of Spring 2.5 + Ibatis 2.3
> and Spring 2.5+myBatis 3. I am leaning towards later, but just wanted
> ensure this approach has no issues.

That depends on the criticity of your system. Spring 2.5 + ibatis 2 is
a tested and robust solution.

Spring 2.5 + MyBatis 3 has never been tested, if an error is found due
to Spring version you may have to fix it yourself. If there is a
problem with Spring 3 there is no warranty that we will fix it but I
am quite sure we will or at least try :) So this is a risk you should
take into account.

What is the problem with Spring 3 + MyBatis 3? If you are starting a
new project why you can choose MyBatis version but not Spring version?

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.