注解关联时报错总结
1)
org.hibernate.MappingException: Could not determine type for: java.util.List, at table: task_plan, for columns: [org.hibernate.mapping.Column(details)]
检出双向关联的注解(@OneToMany、@ManyToOne、@OneToOne)要么全都在属性上,要么都在 getter方法上!!,否则会报上面的错误
2)
@Transient代表该方法不会被JPA映射管理,认为是普通方法
Previous@CreateDate @LastModifiedDate @EntityListeners、@SQLDelete、@WhereNextJPA 多对多关联 中间表带有属性 两个外键作为中间表的联合主键时 直接操作中间表查询修改的方法
Last updated
Was this helpful?