Issue 159: setUniqueProperty() and a primary key made up of a few columns
Status:  WontFix
Owner: ----
Closed:  Oct 2008
Reported by peckkwan...@gmail.com, Oct 29, 2008
I have used Jmesa for a few days. 
I think it is a very useful component and Thankyou for all the lines of codes.

I wonder whether unqniue property can be a combination of two or more columns.

I can find the user forum, so I opened an issue.

/Kwan
Oct 29, 2008
Project Member #1 jeff.johnston.mn@gmail.com
To keep things more simple and easy I decided to not have the UniqueProperty take
more than one property...at least for the initial launch of the worksheet. I knew
that it could be expanded in the future and be fully backwards compatible if I
decided to do it.

The workaround would be to create a bean attribute that combines the attributes you
need and then put something like a pipe between them. Then in your controller you
could parse the values back out. Does that make sense?



Labels: -Type-Defect Type-Enhancement
Oct 30, 2008
#2 peckkwan...@gmail.com
Thanks for the reply.
I got your idea. I am using collection of maps, I can add en entry in the map where
the primary key fields are concatenated. I will try that.
Oct 30, 2008
Project Member #3 jeff.johnston.mn@gmail.com
I am going to write this up as a recipe and then close the issue for now. I am trying
to be more up front about what I can do for the upcoming releases. I think the
workaround is straightforward enough too...

https://code.google.com/p/jmesa/wiki/WorksheetRecipes

I would also accept a patch for this if anyone is interested in the work...

Status: WontFix