The problem:
We have duplicate ID's across various tables, an example being:
Table 1
ID 1 = UNI-ID1-234211
ID 2 = UNI-ID1-234211
Table 2
ID 1 = UNI-ID2-230011
ID 2 = UNI-ID2-230011
ID 2 = UNI-ID2-230011
I want to find the duplicate ID's and then increment the last part of the ID, but retain first lowest value. For example:
Table 1
ID 1 = UNI-ID1-234211
ID 2 = UNI-ID1-234212
Table 2
ID 1 = UNI-ID2-230011
ID 2 = UNI-ID2-230012
ID 2 = UNI-ID2-230013
I've isolated the duplicates with a Matcher already. I've split the ID based on hyphen to get me 3 parts to the ID, _list{2} gives me the last part.
I assume I'll need to push it through a looping custom transformer maybe? or can it be done with Listing techniques too?
Thanks for your help,