Hi Jaimin, True. Is this a custom class you have? if we separate the concatenation by a standard special character, it should be fine? for e.g CA#US, C#AUS ?
Thanks Vinoth On Mon, Jun 10, 2019 at 4:53 AM Jaimin Shah <[email protected]> wrote: > Hi > I was going through the ComplexKeyGenerator class. I found that the class > generates key by concatenating the all keys to make compound key. But I am > wondering that some cases can arise later which can create problems. > > For example our data has 2 attributes as key > key1 key2 data > CA US xyz > C AUS abc > > In this case key for both rows will be same will it cause any problem? > Instead of keeping keys as string keeping them as map will solve the > problem? > > Thanks >
