I'm uncertain. I think the purpose of data classes was to be able to provide a set of properties and have them all be included in toString/equals/hashCode. There are ways to exclude fields, and perhaps an example of how to do so (like the one in my gist) should be included in the docs. However, I think it works as it should. 🙂