ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Rossoni <rossoni.dav...@gmail.com>
Subject Re: iBatis 3 - issue using annotations during Maven compile process
Date Thu, 22 Apr 2010 13:19:06 GMT
Sure, please check at this pom.xml section:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.3</version>
    <configuration>
        <source>1.6</source>
        <target>1.6</target>
        <compilerVersion>1.6</compilerVersion>
    </configuration>
</plugin>

Davide


On Apr 22, 2010, at 3:15 PM, Clinton Begin wrote:

> Are you sure you're compiling with jdk 5 or above?
> 
> On 2010-04-22, Davide Rossoni <rossoni.davide@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:
>> 
>> MyTableMapper.java:[13,4] illegal start of expression
>> 
>> Here is the simple code:
>> 
>> public interface MyTableMapper {
>> 
>>  @Select("SELECT name, description FROM myTable WHERE id = #{id}")
>>  @Results( {
>>      @Result(property = "descr", column = "description"),
>>  })
>>  List<MyTable> selectNames(Integer id);
>> }
>> 
>> 
>> Testing the codes, the problem seems to be the @Results annotation.
>> If I comment the @Results section, it compiles well.
>> 
>> Thanks in advance
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
>> For additional commands, e-mail: user-java-help@ibatis.apache.org
>> 
>> 
> 
> -- 
> Sent from my mobile device
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
> For additional commands, e-mail: user-java-help@ibatis.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org


Mime
View raw message