Overloading toString()

A few options to override a Object.toString() in Java: Commons Collections Describe the bean as a Map: Commons Lang Using reflection and some help from apache commons lang: In this case, null properties are ignored. For a simple bean like this one: You should see something like: Product@da6bf4