Modified toString method of Entity for wrong package #141

backported to 1.0.x.
Please review #141 , and merge to 1.0.x branch.