Fixed issues when generating static method for hash code generation with
defined field prefix