今天配置实体类注解时,出现以下错误:

org.hibernate.MappingException: Could not determine type for: com.oneToOne.IdCard, at table: T_Students, for columns: 
解决方案:注解要么写在字段上,要么写在getXX上,千万千万不能混合使用,否则会报这个错误!

相关文章:

  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
相关资源
相似解决方案