I'm running Abator from an Ant target like this.
Since I'm passing in "false", it shouldn't overwrite existing files.
However, depending on the change I make to a generated SqlMap.xml
file, it overwrites it anyway.
If I add a new element, the file doesn't get overw
Depending on whether you need to be able to "add/remove" from the
Objects list after its set:
public void setObjects(List objects) {
this.objects = objects == null ? Collections.emptyList() : objects;
}
// or
public void setObjects(List objects) {
this.objects = objects == null ? new Arra
[EMAIL PROTECTED] wrote:
Greetings all,
I have a complex query whose result set is mapped to resultMaps several
levels deep by using the groupBy / resultMap feature. This "grouping"
works in 2.1.7 but fails in 2.2 and 2.3 when it encounters a resultMap
that contains 2 result elements that
I wonder if this is related to this known issue:
http://issues.apache.org/jira/browse/IBATIS-357
If not, it would be good to write a simple test case to prove the failure
and submit it on a JIRA ticket (you can use the attachment to the above
issue as an example of how to submit a test case).
J
I'm assuming you are familiar with iBATIS 1.0 since you have been using it
for some time. The best thing I think you could do is to read the iBATIS 2
Developer docs (
http://ibatis.apache.org/docs/java/pdf/iBATIS-SqlMaps-2_en.pdf). That should
give you all that you need.
Brandon
On 2/9/07, Tusha
Greetings all,
I have a complex query whose result set is mapped to resultMaps several
levels deep by using the groupBy / resultMap feature. This "grouping"
works in 2.1.7 but fails in 2.2 and 2.3 when it encounters a resultMap
that contains 2 result elements that are themselves mapped to resu
Hi All,
Currently I am using iBATIS 1.0 in my system and i want to upgrade it to
iBATIS 2.2.
Can anybody tell me where i will get the change log between these two
versions.
And what will be the impact of this change.
--
With regards
Tushar Kherde
Maybe instead of throwing exception creating empty list would work for you
(I often use it to avoid routine null checks )
public void setObjects(List objects){
if (objects == null)
{
objects = new ArrayLis();
}
this.objects = objects;
}
I have a setter which does no accept null values for a list, ie:
public void setObjects(List objects){
if (objects == null) throw new NullPointerException("null not
permitted");
this.objects = objects;
}
I did not find yet any decent way to map a nullvalue to an empty list, I
was think