我正在尝试通过hibernate中的ManyToOne进行单向JoinTable关联,但是我始终得到以下错误:
A JPA error occurred (Unable to build EntityManagerFactory): Unable to find column with logical name: name in org.hibernate.mapping.Table(users) and its related我希望能够通过UserHouseMap访问用户的住所。下面是User上
(IndexOrUniqueKeySecondPass.java:86) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1741)
at org.hibernate.cfg.Configuration.buildSessionFactorypublic Location getLoca
A有一个名为orderNo的列。2.表B,主键为bId。B有一个名为salesOrderNo的列。A.orderNo与B.salesOrderNo相同,而且对于表A中对应于特定orderNo的一个条目,表B中的许多条目具有相同的salesOrderNo。ManyToOne @JsonIgnore
private A a
我使用了最新版本的SpringBoot2.5.2,当我想使用一对多的关系时,我得到了一些映射问题--这里是问题
Caused by: org.hibernate.MappingException: Unableto find column with logical name: id in org.hibernate.mapping.Table(order) and its related supertables