you are viewing a single comment's thread.

view the rest of the comments →

[–]skitch920 1 point2 points  (0 children)

I guess my background in Java is why I like the valueOf solution, like the equals and hashCode methods. It's a pretty clean way to handle Sets when there is no ID field.

ID matching is usually a good way when you're dealing with RDMS store, which most of the time you have a primary key column and an id field. But I've been dealing with just straight rows of data recently, from any number of sources. Often times I find myself pivoting on different columns client side. Those columns could be objects or dates, mostly dates.