Property setter is required by Ibatis, even if only subproperties are being
modified
------------------------------------------------------------------------------------
Key: IBATIS-390
URL: https://issues.apache.org/jira/browse/IBATIS-390
Project: iBatis for Java
Issue Type: Bug
Components: SQL Maps
Affects Versions: 2.3.0
Environment: JDK 1.5
Reporter: Reuben Firmin
>From my post to the users mailing list:
Let's say I have a class structure as per below. Ibatis does not seem to let me
address the path foo.bah.someProperty, because there is no setter (Foo#setBah).
Specifically, I get "com.ibatis.common.beans.ProbeException: There is no
WRITEABLE property". Spring, on the other hand, is fine with this particular
setup, and in fact seems to ignore the setBah() method if it exists. I think
Ibatis should behave like Spring in this regard.
public class Foo
{
private Bah bah;
public Foo()
{
bah = new Bah();
}
public Bah getBah()
{
return bah;
}
}
public class Bah
{
private int someProperty;
public int getSomeProperty()
...
public void setSomeProperty(int someProperty)
...
}
----------
Larry sums up:
That is an interesting pattern - you can't change bah, but you can
change it's properties.
That *should* work, IMO. Can you add an issue in JIRA for that?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.