You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Lee Shinlever <ls...@lexesinc.com> on 2007/08/27 21:41:03 UTC

Cannot find an appropriate constructor which map parameters in class

Greetings,

 I have a class with two constructors such as:

 public class SomeClass
{
    protected SomeClass()
    {
        // empty constructor
    }

    public SomeClass(ridiculously long param list)
    {
        //...initialize private variables
    }
}

In my mapping file I have tried defining the ResultMap for the public
ctor using the <constructor> attribute but I keep getting the "Cannot
find an appropriate constructor which map parameters in class:
SomeClass".

Any ideas?

Thanks,
Lee