今天配置實體類註解時,出現以下錯誤:
Caused by: org.hibernate.MappingException: Could not determine type for: java.util.Set, at table: test_plan, for columns: [org.hibernate.mapping.Column(routing_case)]
解決方案:註解要麼寫在字段上,要麼寫在getXX上,千萬千萬不能混合使用,否則會報這個錯誤!
今天配置實體類註解時,出現以下錯誤:
Caused by: org.hibernate.MappingException: Could not determine type for: java.util.Set, at table: test_plan, for columns: [org.hibernate.mapping.Column(routing_case)]
解決方案:註解要麼寫在字段上,要麼寫在getXX上,千萬千萬不能混合使用,否則會報這個錯誤!