不要統計Collection類型的字段的hashCode就可以解決問題:org.hibernate.LazyInitializationException: illegal access to loading collection,