Hibeinate: Could not determine type for: java.util.List, at table: address_inf, for columns: [org.hi

Hibernate中:

Caused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table: address_inf, for columns: [org.hibernate.mapping.Column(address_Detail)]

导致原因:

1:你的集合属性没有通过@ElementCollection注解标明

2:你的注解位置不正确,注解要么写在相应属性上,或者写在相应的get方法上,切勿有的写在属性上,有的写在方法上。


你可能感兴趣的:(Hibernate,table,at,could,not,determine)