- public boolean equals(Object other) {
- if ( !(other instanceof Topic) ) return false;
- Topic castOther = (Topic) other;
- return new EqualsBuilder()
- .append(this.getId(), castOther.getId())
- .isEquals();
- }
+ public String toString() {
+ return new ToStringBuilder(this)
+ .append("id", getId())
+ .append("title", getTitle())
+ .toString();
+ }